Recipe NER Small BERT

This repository contains a compact BERT-style token classification model trained from scratch on a BIO-annotated recipe corpus.

What the model predicts

  • NAME β€” ingredient names
  • QTY β€” quantities
  • UNIT β€” measurement units
  • COMMENT β€” modifiers such as chopped / fresh / canned
  • INDEX and RANGE_END β€” rare auxiliary labels from the source markup

Test metrics

  • F1: 0.8828
  • Precision: 0.8762
  • Recall: 0.8895
  • Accuracy: 0.8960

Usage

from transformers import pipeline

pipe = pipeline(
    "token-classification",
    model="recipe_ner_small_bert",
    tokenizer="recipe_ner_small_bert",
    aggregation_strategy="simple",
)

pipe("2 cups flour\n1 cup sugar\n1 tbsp olive oil")
Downloads last month
211
Safetensors
Model size
1.15M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support