Instructions to use panigrah/wineberto-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use panigrah/wineberto-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="panigrah/wineberto-ner")# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("panigrah/wineberto-ner") model = AutoModelForTokenClassification.from_pretrained("panigrah/wineberto-ner") - Notebooks
- Google Colab
- Kaggle
Added more entities to training set and also randomized wine label. Earlier training set was flawed because wine labels were always located at the beginning of the description of the wine and the model trained itself to tag everything in the begining of the description as the wine label.
Browse files- config.json +28 -28
- pytorch_model.bin +1 -1
- training_args.bin +3 -0
config.json
CHANGED
|
@@ -11,42 +11,42 @@
|
|
| 11 |
"hidden_size": 768,
|
| 12 |
"id2label": {
|
| 13 |
"0": "O",
|
| 14 |
-
"1": "B-
|
| 15 |
"2": "B-country",
|
| 16 |
"3": "B-flavor",
|
| 17 |
-
"4": "B-
|
| 18 |
-
"5": "B-
|
| 19 |
-
"6": "B-
|
| 20 |
-
"7": "B-
|
| 21 |
-
"8": "B-
|
| 22 |
-
"9": "B-
|
| 23 |
-
"10": "
|
| 24 |
-
"11": "
|
| 25 |
-
"12": "I-
|
| 26 |
-
"13": "I-
|
| 27 |
-
"14": "I-
|
| 28 |
-
"15": "I-
|
| 29 |
-
"16": "I-
|
| 30 |
},
|
| 31 |
"initializer_range": 0.02,
|
| 32 |
"intermediate_size": 3072,
|
| 33 |
"label2id": {
|
| 34 |
-
"B-
|
| 35 |
"B-country": 2,
|
| 36 |
"B-flavor": 3,
|
| 37 |
-
"B-
|
| 38 |
-
"B-
|
| 39 |
-
"B-
|
| 40 |
-
"B-
|
| 41 |
-
"B-
|
| 42 |
-
"B-
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"I-
|
| 46 |
-
"I-
|
| 47 |
-
"I-
|
| 48 |
-
"I-
|
| 49 |
-
"I-
|
| 50 |
"O": 0
|
| 51 |
},
|
| 52 |
"layer_norm_eps": 1e-12,
|
|
|
|
| 11 |
"hidden_size": 768,
|
| 12 |
"id2label": {
|
| 13 |
"0": "O",
|
| 14 |
+
"1": "B-adj",
|
| 15 |
"2": "B-country",
|
| 16 |
"3": "B-flavor",
|
| 17 |
+
"4": "B-grape",
|
| 18 |
+
"5": "B-moutfeel",
|
| 19 |
+
"6": "B-mouthfeel",
|
| 20 |
+
"7": "B-producer",
|
| 21 |
+
"8": "B-province",
|
| 22 |
+
"9": "B-region",
|
| 23 |
+
"10": "B-sweetness",
|
| 24 |
+
"11": "B-vintage",
|
| 25 |
+
"12": "I-country",
|
| 26 |
+
"13": "I-grape",
|
| 27 |
+
"14": "I-producer",
|
| 28 |
+
"15": "I-province",
|
| 29 |
+
"16": "I-region"
|
| 30 |
},
|
| 31 |
"initializer_range": 0.02,
|
| 32 |
"intermediate_size": 3072,
|
| 33 |
"label2id": {
|
| 34 |
+
"B-adj": 1,
|
| 35 |
"B-country": 2,
|
| 36 |
"B-flavor": 3,
|
| 37 |
+
"B-grape": 4,
|
| 38 |
+
"B-moutfeel": 5,
|
| 39 |
+
"B-mouthfeel": 6,
|
| 40 |
+
"B-producer": 7,
|
| 41 |
+
"B-province": 8,
|
| 42 |
+
"B-region": 9,
|
| 43 |
+
"B-sweetness": 10,
|
| 44 |
+
"B-vintage": 11,
|
| 45 |
+
"I-country": 12,
|
| 46 |
+
"I-grape": 13,
|
| 47 |
+
"I-producer": 14,
|
| 48 |
+
"I-province": 15,
|
| 49 |
+
"I-region": 16,
|
| 50 |
"O": 0
|
| 51 |
},
|
| 52 |
"layer_norm_eps": 1e-12,
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 435686633
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d56cb4b0c77244c1b92a832a98cb7cf5217d54039804ca63d8bdaa5ea7aec69
|
| 3 |
size 435686633
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a31d8a636cb808f2773176be3842a638157281a49cf8d736ce8bc5143ab71326
|
| 3 |
+
size 3963
|