Upload pytorch_model.bin with git-lfs da5b7e5
David commited on
How to use Recognai/veganuary_ner with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="Recognai/veganuary_ner") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("Recognai/veganuary_ner")
model = AutoModelForTokenClassification.from_pretrained("Recognai/veganuary_ner", device_map="auto")