Instructions to use Jean-Baptiste/camembert-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jean-Baptiste/camembert-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="Jean-Baptiste/camembert-ner")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("Jean-Baptiste/camembert-ner") model = AutoModelForTokenClassification.from_pretrained("Jean-Baptiste/camembert-ner") - Inference
- Notebooks
- Google Colab
- Kaggle
vocab.txt
#6
by zozoit - opened
Hello, I'm trying to use this model in the ONNX format with OpenNLP.
But when using with ONNX models, OpenNLP APIs are asking for a vocab.txt file in addition to the onnx file (you can find the vocab file for some other models like dslim/bert-base-NER for instance). I'm not a data scientist, I'm not really sure why OpenNLP needs it, and it must be related to the dict.txt you can find in the Camembert base model.
Hello, sorry for the late reply, I was in vacation.
I couldn't find the original vocab.txt file. I tried regenerated one using the get_vocab() function of the tokenizer.
Let me know if this work?
Thanks,
Jean-Baptiste
Thanks a lot, I will try it !