How to use this model directly from the
from transformers import AutoTokenizer, TFAutoModelWithLMHead tokenizer = AutoTokenizer.from_pretrained("jplu/tf-camembert-base") model = TFAutoModelWithLMHead.from_pretrained("jplu/tf-camembert-base")
In this repository you will find different versions of the CamemBERT model for Tensorflow.
CamemBERT is a state-of-the-art language model for French based on the RoBERTa architecture pretrained on the French subcorpus of the newly available multilingual corpus OSCAR.
With Transformers >= 2.4 the Tensorflow models of CamemBERT can be loaded like:
from transformers import TFCamembertModel model = TFCamembertModel.from_pretrained("jplu/tf-camembert-base")
All models are available on the Huggingface model hub.
Thanks to all the Huggingface team for the support and their amazing library!