File size: 991 Bytes
59e400d
 
66fb80e
 
 
 
 
 
 
 
 
 
 
 
59e400d
66fb80e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
license: openrail
language:
- de
metrics:
- f1
- accuracy
- precision
- recall
pipeline_tag: token-classification
tags:
- recipe
- cooking
- entity_recognition
---
Weakly supervised token classification model for German recipe texts based on bert-base-german-cased.

Code available: https://github.com/chefkoch24/weak-ingredient-recognition

Dataset: https://www.kaggle.com/datasets/sterby/german-recipes-dataset

Recognizes the following entities:
'O': 0, <br>
'B-INGREDIENT': 1,<br>
'I-INGREDIENT': 2,<br>
'B-UNIT': 3,<br>
'I-UNIT': 4,<br>
'B-QUANTITY': 5,<br>
'I-QUANTITY': 6<br>

**Training:**
epochs: 2<br>
optimizer: Adam<br>
learning rate: 2e-5<br>
max length: 512<br>
recipes: 7801<br>

The model was trained on single Geforce RTX2080 with 11GB GPU


**Metrics on test set (weakly supervised)**:
accuracy_token         0.9965656995773315<br>
   f1_token            0.9965656995773315<br>
precision_token        0.9965656995773315<br>
 recall_token          0.9965656995773315<br>