Downloads · 30 days
6
21% of all-time downloads
niruthiha/roberta-large-mit-restaurant-ner
roberta-large-mit-restaurant-ner is a token classification model from niruthiha. Use it when you need labels on individual words, such as names.
This model is a fine-tuned version of RoBERTa Large on the MIT Restaurant dataset for Named Entity Recognition (NER).
Downloads · 30 days
6
21% of all-time downloads
All-time downloads
29
Public
Parameters
354M
1.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of RoBERTa Large on the MIT Restaurant dataset for Named Entity Recognition (NER).
The model can identify the following entity types: ['O', 'B-Amenity', 'I-Amenity', 'B-Cuisine', 'I-Cuisine', 'B-Dish', 'I-Dish', 'B-Hours', 'I-Hours', 'B-Location', 'I-Location', 'B-Price', 'I-Price', 'B-Rating', 'I-Rating', 'B-Restaurant_Name', 'I-Restaurant_Name']
from transformers import AutoTokenizer, AutoModelForTokenClassification, pipeline
tokenizer = AutoTokenizer.from_pretrained("niruthiha/roberta-large-mit-restaurant-ner")
model = AutoModelForTokenClassification.from_pretrained("niruthiha/roberta-large-mit-restaurant-ner")
# Using pipeline
nlp = pipeline("ner", model=model, tokenizer=tokenizer, aggregation_strategy="simple")
result = nlp("I want a reservation at an italian restaurant with outdoor seating")
print(result)
# Manual usage
inputs = tokenizer("I want a reservation at an italian restaurant", return_tensors="pt")
outputs = model(**inputs)
The MIT Restaurant dataset contains restaurant-related queries with entity annotations. Dataset source: https://groups.csail.mit.edu/sls/downloads/restaurant/
The model achieves good performance on restaurant domain NER tasks. Specific metrics will be updated after evaluation.