flair / ner-french

huggingface.co
Total runs: 19.7K
24-hour runs: 0
7-day runs: 518
30-day runs: 10.2K
Model's Last Updated: August 13 2025
token-classification

Introduction of ner-french

Model Details of ner-french

French NER in Flair (default model)

This is the standard 4-class NER model for French that ships with Flair .

F1-Score: 90,61 (WikiNER)

Predicts 4 tags:

tag meaning
PER person name
LOC location name
ORG organization name
MISC other name

Based on Flair embeddings and LSTM-CRF.


Demo: How to use in Flair

Requires: Flair ( pip install flair )

from flair.data import Sentence
from flair.models import SequenceTagger

# load tagger
tagger = SequenceTagger.load("flair/ner-french")

# make example sentence
sentence = Sentence("George Washington est allé à Washington")

# predict NER tags
tagger.predict(sentence)

# print sentence
print(sentence)

# print predicted NER spans
print('The following NER tags are found:')
# iterate over entities and print
for entity in sentence.get_spans('ner'):
    print(entity)

This yields the following output:

Span [1,2]: "George Washington"   [− Labels: PER (0.7394)]
Span [6]: "Washington"   [− Labels: LOC (0.9161)]

So, the entities " George Washington " (labeled as a person ) and " Washington " (labeled as a location ) are found in the sentence " George Washington est allé à Washington ".


Training: Script to train this model

The following Flair script was used to train this model:

from flair.data import Corpus
from flair.datasets import WIKINER_FRENCH
from flair.embeddings import WordEmbeddings, StackedEmbeddings, FlairEmbeddings

# 1. get the corpus
corpus: Corpus = WIKINER_FRENCH()

# 2. what tag do we want to predict?
tag_type = 'ner'

# 3. make the tag dictionary from the corpus
tag_dictionary = corpus.make_tag_dictionary(tag_type=tag_type)

# 4. initialize each embedding we use
embedding_types = [

    # GloVe embeddings
    WordEmbeddings('fr'),

    # contextual string embeddings, forward
    FlairEmbeddings('fr-forward'),

    # contextual string embeddings, backward
    FlairEmbeddings('fr-backward'),
]

# embedding stack consists of Flair and GloVe embeddings
embeddings = StackedEmbeddings(embeddings=embedding_types)

# 5. initialize sequence tagger
from flair.models import SequenceTagger

tagger = SequenceTagger(hidden_size=256,
                        embeddings=embeddings,
                        tag_dictionary=tag_dictionary,
                        tag_type=tag_type)

# 6. initialize trainer
from flair.trainers import ModelTrainer

trainer = ModelTrainer(tagger, corpus)

# 7. run training
trainer.train('resources/taggers/ner-french',
              train_with_dev=True,
              max_epochs=150)

Cite

Please cite the following paper when using this model.

@inproceedings{akbik2018coling,
  title={Contextual String Embeddings for Sequence Labeling},
  author={Akbik, Alan and Blythe, Duncan and Vollgraf, Roland},
  booktitle = {{COLING} 2018, 27th International Conference on Computational Linguistics},
  pages     = {1638--1649},
  year      = {2018}
}

Issues?

The Flair issue tracker is available here .

Runs of flair ner-french on huggingface.co

19.7K
Total runs
0
24-hour runs
0
3-day runs
518
7-day runs
10.2K
30-day runs

More Information About ner-french huggingface.co Model

ner-french huggingface.co

ner-french huggingface.co is an AI model on huggingface.co that provides ner-french's model effect (), which can be used instantly with this flair ner-french model. huggingface.co supports a free trial of the ner-french model, and also provides paid use of the ner-french. Support call ner-french model through api, including Node.js, Python, http.

ner-french huggingface.co Url

https://huggingface.co/flair/ner-french

flair ner-french online free

ner-french huggingface.co is an online trial and call api platform, which integrates ner-french's modeling effects, including api services, and provides a free online trial of ner-french, you can try ner-french online for free by clicking the link below.

flair ner-french online free url in huggingface.co:

https://huggingface.co/flair/ner-french

ner-french install

ner-french is an open source model from GitHub that offers a free installation service, and any user can find ner-french on GitHub to install. At the same time, huggingface.co provides the effect of ner-french install, users can directly use ner-french installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

ner-french install url in huggingface.co:

https://huggingface.co/flair/ner-french

Url of ner-french

ner-french huggingface.co Url

Provider of ner-french huggingface.co

flair
ORGANIZATIONS

Other API from flair

huggingface.co

Total runs: 192.5K
Run Growth: -26.2K
Growth Rate: -13.68%
Updated:August 28 2022
huggingface.co

Total runs: 174.3K
Run Growth: -59.1K
Growth Rate: -33.24%
Updated:July 22 2024
huggingface.co

Total runs: 33.9K
Run Growth: 29.3K
Growth Rate: 86.13%
Updated:March 13 2025
huggingface.co

Total runs: 28.2K
Run Growth: -321
Growth Rate: -1.15%
Updated:April 10 2023
huggingface.co

Total runs: 6.5K
Run Growth: -2.2K
Growth Rate: -34.19%
Updated:April 05 2023
huggingface.co

Total runs: 1.7K
Run Growth: 1.3K
Growth Rate: 75.23%
Updated:December 06 2024
huggingface.co

Total runs: 401
Run Growth: -255
Growth Rate: -65.22%
Updated:April 05 2023
huggingface.co

Total runs: 290
Run Growth: -28
Growth Rate: -9.79%
Updated:March 03 2021
huggingface.co

Total runs: 280
Run Growth: -159
Growth Rate: -57.61%
Updated:April 07 2023
huggingface.co

Total runs: 227
Run Growth: -318
Growth Rate: -161.42%
Updated:March 13 2025
huggingface.co

Total runs: 58
Run Growth: -848
Growth Rate: -1514.29%
Updated:October 04 2022
huggingface.co

Total runs: 25
Run Growth: -259
Growth Rate: -1233.33%
Updated:July 22 2024
huggingface.co

Total runs: 3
Run Growth: -15
Growth Rate: -500.00%
Updated:February 26 2021