# Any Model for NER on French

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125%3E%5C
**Category:** Models\
**Created:** [September 14, 2020, 5:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125 "2020-09-14T17:43:56Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergulaydore](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sergulaydore](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsergulaydore)%5C
**Post date:** [September 14, 2020, 5:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125%2F1 "2020-09-14T17:43:56Z")

</div>

Hi all,

I have been looking for a model to run a NER task in French. I see there are Camembert and RobertA models for token classification but these models are not fine-tuned for any NER tasks. Any suggestions on this? If there is not any model, is there any French dataset tagged for NER?

Thank you,  
Sergul

---

<div class="post-metadata">

**Author:** ![stefan-it](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stefan-it/32/20175_2.png) [@stefan-it](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fstefan-it)%5C
**Post date:** [September 18, 2020, 9:49am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125%2F2 "2020-09-18T09:49:46Z")

</div>

I just asked Pedro ([https://github.com/pjox](https://github.com/pjox)), maybe he knows some good NER datasets for French that are publicly available for fine-tuning.

If someone could give me access to FTB dataset (see CamemBERT paper), I could fine-tune a model + upload it to the model hub 😅

---

<div class="post-metadata">

**Author:** ![stefan-it](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stefan-it/32/20175_2.png) [@stefan-it](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fstefan-it)%5C
**Post date:** [September 18, 2020, 12:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125%2F3 "2020-09-18T12:48:06Z")

</div>

Alternatives would be to use “silver standard” datasets like WikiANN/Panx or WikiNER (that include French) 🙂

---

<div class="post-metadata">

**Author:** ![sergulaydore](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sergulaydore](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsergulaydore)%5C
**Post date:** [September 18, 2020, 1:36pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125%2F4 "2020-09-18T13:36:11Z")

</div>

Thank you @stefan-it. If I use WikiNER, do you know if there is a good way to convert it to ConLL format?

---

<div class="post-metadata">

**Author:** ![stefan-it](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/stefan-it/32/20175_2.png) [@stefan-it](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fstefan-it)%5C
**Post date:** [September 18, 2020, 1:38pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125%2F5 "2020-09-18T13:38:08Z")

</div>

For the last time I worked with WikiNER I wrote an own script that converts the dataset into a CoNLL-like format - you can find it here:

> <https://github.com/stefan-it/fine-tuned-berts-seq/blob/master/scripts/preprocess_wikiner.py>

---

<div class="post-metadata">

**Author:** ![sergulaydore](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sergulaydore](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsergulaydore)%5C
**Post date:** [September 18, 2020, 1:41pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125%2F6 "2020-09-18T13:41:31Z")

</div>

Excellent! Thank you so much and please let me know if you upload a NER model in French 🙂

---

<div class="post-metadata">

**Author:** ![sergulaydore](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sergulaydore](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsergulaydore)%5C
**Post date:** [September 18, 2020, 1:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125%2F7 "2020-09-18T13:51:06Z")

</div>

Oh one more thing, @stefan-it do you have an evaluation script (F1, accuracy, etc scores) for ConLL type?

---

<div class="post-metadata">

**Author:** ![sergulaydore](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@sergulaydore](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsergulaydore)%5C
**Post date:** [September 18, 2020, 10:13pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fany-model-for-ner-on-french%2F1125%2F8 "2020-09-18T22:13:50Z")

</div>

Found it here [https://github.com/huggingface/transformers/tree/master/examples/token-classification](https://github.com/huggingface/transformers/tree/master/examples/token-classification)
