nuhuibrahim commited on
Commit
1f02d44
·
verified ·
1 Parent(s): f3b688a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +109 -3
README.md CHANGED
@@ -1,3 +1,109 @@
1
- ---
2
- license: cc-by-nc-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - nuhuibrahim/recifinegold
4
+ language:
5
+ - en
6
+ base_model:
7
+ - FacebookAI/roberta-base
8
+ license: cc-by-nc-4.0
9
+ tags:
10
+ - token-classification
11
+ - named-entity-recognition
12
+ - roberta
13
+ - recipes
14
+ - knowledge-augmented
15
+ - entity-conditioned
16
+ ---
17
+
18
+ # ReciFineGold RecipeRoBERTa (Traditional Token Classification) `recifinegold-reciperoberta-trad`
19
+
20
+ This model is a **RoBERTa-base** token-classification model trained on **ReciFineGold** for **recipe-focused Named Entity Recognition (NER)**.
21
+
22
+ ## What this checkpoint is
23
+
24
+ - **Backbone:** RoBERTa-base
25
+ - **Task:** Token classification (BIO-style tagging)
26
+
27
+ ## How to use
28
+
29
+ The ReciFine library provides a lightweight inference wrapper (`ReciFineNER`) that handles extraction and decoding.
30
+
31
+ ```python
32
+ pip install https://github.com/nuhu-ibrahim/ReciFine/archive/refs/tags/V1.zip
33
+
34
+ from recifine.inferencing.inference import ReciFineNER
35
+
36
+ ner = ReciFineNER.from_pretrained(
37
+ model="reciperoberta",
38
+ task_formulation="traditional",
39
+ )
40
+
41
+ text = "Add 2 cups of chopped onions and fry until golden ."
42
+
43
+ prediction = ner.process_text(
44
+ text
45
+ )
46
+
47
+ print(prediction)
48
+ ```
49
+
50
+ ## Quick links (documentation + notebook)
51
+
52
+ - **ReciFine library (recommended):** training scripts, inference wrappers, and full documentation
53
+ https://github.com/nuhu-ibrahim/ReciFine/tree/main
54
+
55
+ - **Colab (end-to-end usage demo):**
56
+ https://colab.research.google.com/drive/1CatH2YOhnOWf-VglprEgxONWRkrXRBXo?usp=sharing&authuser=1
57
+
58
+ ## Intended use
59
+
60
+ Use this model to extract **fine-grained recipe entities** from procedural recipe text (e.g., instructions), including ingredients, tools, quantities, durations, actions, and state descriptors.
61
+
62
+ Typical applications:
63
+ - Structured parsing of recipe steps
64
+ - Ingredient and action extraction for downstream cooking assistants
65
+ - Data normalisation and indexing for recipe search
66
+ - Entity-aware prompting and evaluation pipelines for recipe generation
67
+
68
+ ### Supported entity types
69
+
70
+ | Entity Type | Definition |
71
+ |---|---|
72
+ | `FOOD` | Edible items, including both raw ingredients and intermediate products |
73
+ | `TOOL` | Cooking tools such as *knives, bowls, pans* |
74
+ | `DURATION` | Time durations in cooking (e.g., *20 minutes*) |
75
+ | `QUANTITY` | Quantities associated with ingredients |
76
+ | `ACTION_BY_CHEF` | Verbs for deliberate cook actions (e.g., *bring* in “Bring the mixture to a boil”) |
77
+ | `ACTION_BY_CHEF_DISCONTINUOUS` | Non-contiguous parts of compound chef actions (e.g., *to a boil*) |
78
+ | `ACTION_BY_FOOD` | Verbs where food is the agent (e.g., *melt, boil*) |
79
+ | `ACTION_BY_TOOL` | Verbs denoting tool actions (e.g., *grind, beat*) |
80
+ | `FOOD_STATE` | Descriptions of food’s state (e.g., *chopped, soft*) |
81
+ | `TOOL_STATE` | Descriptions of tool readiness (e.g., *preheated, greased, covered*) |
82
+
83
+ ## Research Papers
84
+
85
+ ### Knowledge-Augmented and Entity Type-Specific Token Classification
86
+ The knowledge-augmented and entity type-specific token classification model architecture is described in the paper
87
+ **Knowledge Augmentation Enhances Token Classification for Recipe Understanding**.
88
+
89
+ ```bibtex
90
+ @inproceedings{
91
+ title = {Knowledge Augmentation Enhances Token Classification for Recipe Understanding},
92
+ author = {Ibrahim, Nuhu and Stevens, Robert and Batista-Navarro, Riza},
93
+ booktitle = {EACL},
94
+ year = {2026}
95
+ }
96
+ ```
97
+
98
+ ### ReciFine Datasets and Controllable Recipe Generation
99
+ The ReciFine, ReciFineGold and ReciFineGen datasets are described in the paper
100
+ **ReciFine: Finely Annotated Recipe Dataset for Controllable Recipe Generation**.
101
+
102
+ ```bibtex
103
+ @inproceedings{
104
+ title = {ReciFine: Finely Annotated Recipe Dataset for Controllable Recipe Generation},
105
+ author = {Ibrahim, Nuhu and Ravikumar, Rishi and Stevens, Robert and Batista-Navarro, Riza},
106
+ booktitle = {EACL},
107
+ year = {2026}
108
+ }
109
+ ```