PassbyGrocer commited on
Commit
e75aa6d
·
verified ·
1 Parent(s): d64bac8

Upload BertForTokenClassification

Browse files
Files changed (2) hide show
  1. README.md +9 -9
  2. config.json +19 -19
README.md CHANGED
@@ -15,8 +15,8 @@ model-index:
15
  - name: bert-ner-conll2003
16
  results:
17
  - task:
18
- name: Token Classification
19
  type: token-classification
 
20
  dataset:
21
  name: conll2003
22
  type: conll2003
@@ -24,18 +24,18 @@ model-index:
24
  split: validation
25
  args: conll2003
26
  metrics:
27
- - name: Precision
28
- type: precision
29
  value: 0.9414244508542268
30
- - name: Recall
31
- type: recall
32
  value: 0.9493231905134802
33
- - name: F1
34
- type: f1
35
  value: 0.9453573218960619
36
- - name: Accuracy
37
- type: accuracy
38
  value: 0.9865601220074031
 
39
  ---
40
 
41
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
15
  - name: bert-ner-conll2003
16
  results:
17
  - task:
 
18
  type: token-classification
19
+ name: Token Classification
20
  dataset:
21
  name: conll2003
22
  type: conll2003
 
24
  split: validation
25
  args: conll2003
26
  metrics:
27
+ - type: precision
 
28
  value: 0.9414244508542268
29
+ name: Precision
30
+ - type: recall
31
  value: 0.9493231905134802
32
+ name: Recall
33
+ - type: f1
34
  value: 0.9453573218960619
35
+ name: F1
36
+ - type: accuracy
37
  value: 0.9865601220074031
38
+ name: Accuracy
39
  ---
40
 
41
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "bert-base-uncased",
3
  "architectures": [
4
  "BertForTokenClassification"
5
  ],
@@ -10,28 +10,28 @@
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
- "0": "LABEL_0",
14
- "1": "LABEL_1",
15
- "2": "LABEL_2",
16
- "3": "LABEL_3",
17
- "4": "LABEL_4",
18
- "5": "LABEL_5",
19
- "6": "LABEL_6",
20
- "7": "LABEL_7",
21
- "8": "LABEL_8"
22
  },
23
  "initializer_range": 0.02,
24
  "intermediate_size": 3072,
25
  "label2id": {
26
- "LABEL_0": 0,
27
- "LABEL_1": 1,
28
- "LABEL_2": 2,
29
- "LABEL_3": 3,
30
- "LABEL_4": 4,
31
- "LABEL_5": 5,
32
- "LABEL_6": 6,
33
- "LABEL_7": 7,
34
- "LABEL_8": 8
35
  },
36
  "layer_norm_eps": 1e-12,
37
  "max_position_embeddings": 512,
 
1
  {
2
+ "_name_or_path": "PassbyGrocer/bert-ner-conll2003",
3
  "architectures": [
4
  "BertForTokenClassification"
5
  ],
 
10
  "hidden_dropout_prob": 0.1,
11
  "hidden_size": 768,
12
  "id2label": {
13
+ "0": "O",
14
+ "1": "B-PER",
15
+ "2": "I-PER",
16
+ "3": "B-ORG",
17
+ "4": "I-ORG",
18
+ "5": "B-LOC",
19
+ "6": "I-LOC",
20
+ "7": "B-MISC",
21
+ "8": "I-MISC"
22
  },
23
  "initializer_range": 0.02,
24
  "intermediate_size": 3072,
25
  "label2id": {
26
+ "B-LOC": 5,
27
+ "B-MISC": 7,
28
+ "B-ORG": 3,
29
+ "B-PER": 1,
30
+ "I-LOC": 6,
31
+ "I-MISC": 8,
32
+ "I-ORG": 4,
33
+ "I-PER": 2,
34
+ "O": 0
35
  },
36
  "layer_norm_eps": 1e-12,
37
  "max_position_embeddings": 512,