Downloads · 30 days
35
6% of all-time downloads
ChouBERT/CamemBERT-plant-health-tweet-classifier
CamemBERT-plant-health-tweet-classifier is a text classification model from ChouBERT. Use it when you need a label for a piece of text. It is set up for transformers.
You can use this model directly with a pipeline for text classification:
Downloads · 30 days
35
6% of all-time downloads
All-time downloads
585
Public
Parameters
111M
1.3 GB on disk
Likes
1
Public
Click a slice to open those files.
.bin443 MB · 50%
How the weights are stored.
F32111M · 100%
From the Hugging Face model README
You can use this model directly with a pipeline for text classification:
from transformers import pipeline
pipe = pipeline(model="ChouBERT/CamemBERT-plant-health-tweet-classifier")
pipe("Voila les limaces de retour. Ça faisait longtemps que j’en avais pas vu sur blé.")
Here is how to use this model to get the features of a given text in PyTorch:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ChouBERT/CamemBERT-plant-health-tweet-classifier")
model = AutoModelForSequenceClassification.from_pretrained("ChouBERT/CamemBERT-plant-health-tweet-classifier")
text = "Il y a 7 jours le blé ne pointait pas encore. Aujourd’hui 1,5 feuille et dégat de limace. Intervention a venir."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)