Views
No views yet
recifinegold-recipebert-tradReciFineNER) that handles extraction and decoding.1pip install https://github.com/nuhu-ibrahim/ReciFine/archive/refs/tags/V1.zip
2
3from recifine.inferencing.inference import ReciFineNER
4
5ner = ReciFineNER.from_pretrained(
6 model="recipebert",
7 task_formulation="traditional",
8)
9
10text = "Add 2 cups of chopped onions and fry until golden ."
11
12prediction = ner.process_text(
13 text
14)
15
16print(prediction)| Entity Type | Definition |
|---|---|
FOOD | Edible items, including both raw ingredients and intermediate products |
TOOL | Cooking tools such as knives, bowls, pans |
DURATION | Time durations in cooking (e.g., 20 minutes) |
QUANTITY | Quantities associated with ingredients |
ACTION_BY_CHEF | Verbs for deliberate cook actions (e.g., bring in “Bring the mixture to a boil”) |
ACTION_BY_CHEF_DISCONTINUOUS | Non-contiguous parts of compound chef actions (e.g., to a boil) |
ACTION_BY_FOOD | Verbs where food is the agent (e.g., melt, boil) |
ACTION_BY_TOOL | Verbs denoting tool actions (e.g., grind, beat) |
FOOD_STATE | Descriptions of food’s state (e.g., chopped, soft) |
TOOL_STATE | Descriptions of tool readiness (e.g., preheated, greased, covered) |
1@inproceedings{
2 title = {Knowledge Augmentation Enhances Token Classification for Recipe Understanding},
3 author = {Ibrahim, Nuhu and Stevens, Robert and Batista-Navarro, Riza},
4 booktitle = {EACL},
5 year = {2026}
6}1@inproceedings{
2 title = {ReciFine: Finely Annotated Recipe Dataset for Controllable Recipe Generation},
3 author = {Ibrahim, Nuhu and Ravikumar, Rishi and Stevens, Robert and Batista-Navarro, Riza},
4 booktitle = {EACL},
5 year = {2026}
6}