Downloads · 30 days
7
0% of all-time downloads
Dizex/InstaFoodBERT-NER
InstaFoodBERT-NER is a token classification model from Dizex. Use it when you need labels on individual words, such as names. It is set up for transformers. The card lists the license as mit.
InstaFoodBERT-NER is a fine-tuned BERT model that is ready to use for Named Entity Recognition of Food entities on informal text (social media like). It has been trained to recognize a single entity: food (FOOD).
Downloads · 30 days
7
0% of all-time downloads
All-time downloads
1.7K
Public
Repo size
1.7 GB
Likes
0
Public
Click a slice to open those files.
.bin431 MB · 100%
From the Hugging Face model README
InstaFoodBERT-NER is a fine-tuned BERT model that is ready to use for Named Entity Recognition of Food entities on informal text (social media like). It has been trained to recognize a single entity: food (FOOD).
Specifically, this model is a bert-base-cased model that was fine-tuned on a dataset consisting of 400 English Instagram posts related to food. The dataset is open source.
You can use this model with Transformers pipeline for NER.
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("Dizex/InstaFoodBERT-NER")
model = AutoModelForTokenClassification.from_pretrained("Dizex/InstaFoodBERT-NER")
pipe = pipeline("ner", model=model, tokenizer=tokenizer)
example = "Today's meal: Fresh olive poké bowl topped with chia seeds. Very delicious!"
ner_entity_results = pipe(example)
print(ner_entity_results)