Instructions to use Jean-Baptiste/roberta-large-ner-english with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jean-Baptiste/roberta-large-ner-english with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Jean-Baptiste/roberta-large-ner-english")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Jean-Baptiste/roberta-large-ner-english") model = AutoModelForTokenClassification.from_pretrained("Jean-Baptiste/roberta-large-ner-english", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Will this model work for other languages like French and Danish?
#7
by ganeshchuabar - opened
Will this model work for other languages like French and Danish?
I tried testing it with few french language text and it infers PER and ORG entity pretty well.
Hello,
It was only train on English so I wouldn't recommend for any other languages.
For french I trained another one which was working pretty well for my use case:
Jean-Baptiste/camembert-ner
There are also other model that were train for multiple languages like:
Davlan/distilbert-base-multilingual-cased-ner-hrl
I am not sure if it supports Danish though, but I am pretty sure you can find one which does.
Thanks,
Jean-Baptiste
Jean-Baptiste changed discussion status to closed