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
7
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