Instructions to use Yanzhu/bertweetfr_ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yanzhu/bertweetfr_ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Yanzhu/bertweetfr_ner")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Yanzhu/bertweetfr_ner") model = AutoModelForTokenClassification.from_pretrained("Yanzhu/bertweetfr_ner") - Notebooks
- Google Colab
- Kaggle
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Yanzhu/bertweetfr_ner")
model = AutoModelForTokenClassification.from_pretrained("Yanzhu/bertweetfr_ner")YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
French NER model for tweets. Fine-tuned on the CAP2017 dataset.
label_list = ['O', 'B-person', 'I-person', 'B-musicartist', 'I-musicartist', 'B-org', 'I-org', 'B-geoloc', 'I-geoloc', 'B-product', 'I-product', 'B-transportLine', 'I-transportLine', 'B-media', 'I-media', 'B-sportsteam', 'I-sportsteam', 'B-event', 'I-event', 'B-tvshow', 'I-tvshow', 'B-movie', 'I-movie', 'B-facility', 'I-facility', 'B-other', 'I-other']
- Downloads last month
- 11
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Yanzhu/bertweetfr_ner")