Downloads · 30 days
92
0% of all-time downloads
Dizex/FoodBaseBERT-NER
FoodBaseBERT-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.
FoodBaseBERT is a fine-tuned BERT model that is ready to use for Named Entity Recognition of Food entities. It has been trained to recognize one entity: food (FOOD).
Downloads · 30 days
92
0% of all-time downloads
All-time downloads
110K
Public
Parameters
108M
1.3 GB on disk
Likes
21
Public
Click a slice to open those files.
.bin431 MB · 50%
How the weights are stored.
F32108M · 100%
From the Hugging Face model README
FoodBaseBERT is a fine-tuned BERT model that is ready to use for Named Entity Recognition of Food entities. It has been trained to recognize one entity: food (FOOD).
Specifically, this model is a bert-base-cased model that was fine-tuned on the FoodBase NER dataset.
You can use this model with Transformers pipeline for NER.
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained("Dizex/FoodBaseBERT")
model = AutoModelForTokenClassification.from_pretrained("Dizex/FoodBaseBERT")
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)