Downloads · 30 days
0
Dingaling01/food_entity_extractor
food_entity_extractor is a machine learning model from Dingaling01. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for spacy. The card lists the license as mit.
Github Repo: <a href=https://github.com/randymi01/foodner https://github.com/randymi01/foodner</a
Downloads · 30 days
0
Access
Public
Updated May 6, 2023
Repo size
13.5 MB
Likes
1
Public
Click a slice to open those files.
Other13.1 MB · 66%
From the Hugging Face model README
Github Repo: <a href=https://github.com/randymi01/food_ner> https://github.com/randymi01/food_ner</a>
Spacy Food Name Entity Recognition (NER) model trained on StanfordNLP CRF recipe dataset
Use the package manager pip to install spacy version spacy==3.5.0 and then download the spacy en_core_web_sm model.
pip install spacy==3.5.0
python -m spacy download en_core_web_sm
import spacy
nlp = spacy.load("model")
# returns (spring mix, chicken breast, chili, hamburger meat)
nlp("I have spring mix, chicken breast, chili, and hamburger meat").ents
