This model is a French language model based on CamemBERT-base, fine-tuned using verb examples from French Wiktionary via supervised contrastive learning.
The fine-tuning improves token-level semantic representations, particularly for tasks like Word-in-Context (WiC) and Word Sense Disambiguation (WSD).
Although trained on verbs, the model shows enhanced representation quality across the lexicon.
Developed by: Anna Mosolova, Marie Candito, Carlos Ramisch
The model is intended for extracting token-level embeddings for French, with improved sense separation.
How to Get Started with the Model
from transformers import AutoTokenizer, AutoModel
tokenizer = AutoTokenizer.from_pretrained("almanach/camembert-base")
model = AutoModel.from_pretrained("annamos/CamemBERT-Wikt-base-verb")
sentence = 'Les avions ne peuvent pas voler en ce moment'
tokenized = tokenizer(sentence, return_tensors='pt')
embeddings = model(**tokenized)[0]