đ Grocery Named Entity Recognition Model
A fine - tuned GLiNER model for identifying grocery items and food categories in text.
This model is designed to precisely identify various grocery items and food categories within text, offering a practical solution for text - related tasks in the grocery domain.
â ī¸ Important Note
Starting May 20th, all models from empathyai organization will require access request. Please ensure your authentication credentials are properly configured to avoid service interruptions.
Take a look here and try the model in action!

đ Quick Start
This is a fine - tuned GLiNER model for identifying grocery items and food categories in text. You can try it out by following the usage example below.
⨠Features
- This model is fine - tuned on the grocery - ner - dataset to identify 14 different categories of grocery items including fruits, vegetables, dairy products, and more.
- It can effectively identify various grocery - related entity types in text.
Supported Entity Types
- Fruits Vegetables
- Lactose, Diary, Eggs, Cheese, Yoghurt
- Meat, Fish, Seafood
- Frozen, Prepared Meals
- Baking, Cooking
- Cereals, Grains, Canned, Seeds
- Breads
- Snacks, Pastries, Treats
- Frozen Desserts
- Hot Drinks, Chilled Drinks
- Alcoholic Drinks
- Spices, Sauces
- World Foods
- Dietary Restrictions, Health, Allergens, Lifestyle
đĻ Installation
!pip install gliner
đģ Usage Examples
Basic Usage
from gliner import GLiNER
model = GLiNER.from_pretrained("empathyai/gliner_large-v2.5-groceries")
labels = [
"Fruits Vegetables",
"Lactose, Diary, Eggs, Cheese, Yoghurt",
"Meat, Fish, Seafood",
"Frozen, Prepared Meals",
"Baking, Cooking",
"Cereals, Grains, Canned, Seeds",
"Breads",
"Snacks, Pastries, Treats",
"Frozen Desserts",
"Hot Drinks, Chilled Drinks",
"Alcoholic Drinks",
"Spices, Sauces",
"World Foods",
"Dietary Restrictions, Health, Allergens, Lifestyle"
]
text = "I need to buy milk, bread, and fresh apples"
predictions = model.predict_entities(text, labels=labels)
print(predictions)
đ Documentation
Model Description
This model is fine - tuned on the grocery - ner - dataset to identify 14 different categories of grocery items including fruits, vegetables, dairy products, and more.
Training Details
Property |
Details |
Base Model |
gliner - community/gliner_medium - v2.5 |
Training Data |
empathyai/grocery - ner - dataset |
Batch Size |
8 |
Learning Rate |
5e - 6 |
Weight Decay |
0.01 |
Focal Loss Parameters |
alpha = 0.75, gamma = 2 |
Training Strategy |
Linear learning rate with 10% warmup |
đ§ Technical Details
This model is based on the GLiNER framework and is fine - tuned on the grocery - ner - dataset. Through specific training strategies and parameter settings, it can accurately identify 14 different categories of grocery items in text.
đ License
This model is released under the Apache 2.0 license.
đĄ Usage Tip
- This model is optimized for English language text only.
- It performs best on grocery shopping and food - related contexts.
- It may not recognize brand names or regional food items not present in training data.