Update spaCy pipeline
Browse files- README.md +11 -11
- config.cfg +146 -144
- en_pipeline-any-py3-none-any.whl +2 -2
- meta.json +28 -28
- ner/cfg +12 -12
- ner/model +0 -0
- ner/moves +1 -1
- transformer/model +1 -1
- vocab/key2row +2 -2
- vocab/strings.json +2 -2
- vocab/vectors +2 -2
- vocab/vectors.cfg +2 -2
README.md
CHANGED
@@ -13,22 +13,22 @@ model-index:
|
|
13 |
metrics:
|
14 |
- name: NER Precision
|
15 |
type: precision
|
16 |
-
value: 0.
|
17 |
- name: NER Recall
|
18 |
type: recall
|
19 |
-
value: 0.
|
20 |
- name: NER F Score
|
21 |
type: f_score
|
22 |
-
value: 0.
|
23 |
---
|
24 |
| Feature | Description |
|
25 |
| --- | --- |
|
26 |
| **Name** | `en_pipeline` |
|
27 |
| **Version** | `0.0.0` |
|
28 |
| **spaCy** | `>=3.7.5,<3.8.0` |
|
29 |
-
| **Default Pipeline** | `
|
30 |
-
| **Components** | `
|
31 |
-
| **Vectors** |
|
32 |
| **Sources** | n/a |
|
33 |
| **License** | n/a |
|
34 |
| **Author** | [n/a]() |
|
@@ -49,8 +49,8 @@ model-index:
|
|
49 |
|
50 |
| Type | Score |
|
51 |
| --- | --- |
|
52 |
-
| `ENTS_F` |
|
53 |
-
| `ENTS_P` | 98.
|
54 |
-
| `ENTS_R` |
|
55 |
-
| `
|
56 |
-
| `NER_LOSS` |
|
|
|
13 |
metrics:
|
14 |
- name: NER Precision
|
15 |
type: precision
|
16 |
+
value: 0.9877300613
|
17 |
- name: NER Recall
|
18 |
type: recall
|
19 |
+
value: 0.9962871287
|
20 |
- name: NER F Score
|
21 |
type: f_score
|
22 |
+
value: 0.9919901417
|
23 |
---
|
24 |
| Feature | Description |
|
25 |
| --- | --- |
|
26 |
| **Name** | `en_pipeline` |
|
27 |
| **Version** | `0.0.0` |
|
28 |
| **spaCy** | `>=3.7.5,<3.8.0` |
|
29 |
+
| **Default Pipeline** | `transformer`, `ner` |
|
30 |
+
| **Components** | `transformer`, `ner` |
|
31 |
+
| **Vectors** | 0 keys, 0 unique vectors (0 dimensions) |
|
32 |
| **Sources** | n/a |
|
33 |
| **License** | n/a |
|
34 |
| **Author** | [n/a]() |
|
|
|
49 |
|
50 |
| Type | Score |
|
51 |
| --- | --- |
|
52 |
+
| `ENTS_F` | 99.20 |
|
53 |
+
| `ENTS_P` | 98.77 |
|
54 |
+
| `ENTS_R` | 99.63 |
|
55 |
+
| `TRANSFORMER_LOSS` | 36683.04 |
|
56 |
+
| `NER_LOSS` | 35818.80 |
|
config.cfg
CHANGED
@@ -1,145 +1,147 @@
|
|
1 |
-
[paths]
|
2 |
-
train = "
|
3 |
-
dev = "
|
4 |
-
vectors =
|
5 |
-
init_tok2vec = null
|
6 |
-
|
7 |
-
[system]
|
8 |
-
gpu_allocator =
|
9 |
-
seed = 0
|
10 |
-
|
11 |
-
[nlp]
|
12 |
-
lang = "en"
|
13 |
-
pipeline = ["
|
14 |
-
batch_size =
|
15 |
-
disabled = []
|
16 |
-
before_creation = null
|
17 |
-
after_creation = null
|
18 |
-
after_pipeline_creation = null
|
19 |
-
tokenizer = {"@tokenizers":"spacy.Tokenizer.v1"}
|
20 |
-
vectors = {"@vectors":"spacy.Vectors.v1"}
|
21 |
-
|
22 |
-
[components]
|
23 |
-
|
24 |
-
[components.ner]
|
25 |
-
factory = "ner"
|
26 |
-
incorrect_spans_key = null
|
27 |
-
moves = null
|
28 |
-
scorer = {"@scorers":"spacy.ner_scorer.v1"}
|
29 |
-
update_with_oracle_cut_size = 100
|
30 |
-
|
31 |
-
[components.ner.model]
|
32 |
-
@architectures = "spacy.TransitionBasedParser.v2"
|
33 |
-
state_type = "ner"
|
34 |
-
extra_state_tokens = false
|
35 |
-
hidden_width = 64
|
36 |
-
maxout_pieces = 2
|
37 |
-
use_upper =
|
38 |
-
nO = null
|
39 |
-
|
40 |
-
[components.ner.model.tok2vec]
|
41 |
-
@architectures = "spacy.
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
[components.
|
52 |
-
@architectures = "spacy.
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
[
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
|
|
|
|
145 |
[initialize.tokenizer]
|
|
|
1 |
+
[paths]
|
2 |
+
train = "/content/drive/MyDrive/secmodel/train3.spacy"
|
3 |
+
dev = "/content/drive/MyDrive/secmodel/train3.spacy"
|
4 |
+
vectors = null
|
5 |
+
init_tok2vec = null
|
6 |
+
|
7 |
+
[system]
|
8 |
+
gpu_allocator = "pytorch"
|
9 |
+
seed = 0
|
10 |
+
|
11 |
+
[nlp]
|
12 |
+
lang = "en"
|
13 |
+
pipeline = ["transformer","ner"]
|
14 |
+
batch_size = 128
|
15 |
+
disabled = []
|
16 |
+
before_creation = null
|
17 |
+
after_creation = null
|
18 |
+
after_pipeline_creation = null
|
19 |
+
tokenizer = {"@tokenizers":"spacy.Tokenizer.v1"}
|
20 |
+
vectors = {"@vectors":"spacy.Vectors.v1"}
|
21 |
+
|
22 |
+
[components]
|
23 |
+
|
24 |
+
[components.ner]
|
25 |
+
factory = "ner"
|
26 |
+
incorrect_spans_key = null
|
27 |
+
moves = null
|
28 |
+
scorer = {"@scorers":"spacy.ner_scorer.v1"}
|
29 |
+
update_with_oracle_cut_size = 100
|
30 |
+
|
31 |
+
[components.ner.model]
|
32 |
+
@architectures = "spacy.TransitionBasedParser.v2"
|
33 |
+
state_type = "ner"
|
34 |
+
extra_state_tokens = false
|
35 |
+
hidden_width = 64
|
36 |
+
maxout_pieces = 2
|
37 |
+
use_upper = false
|
38 |
+
nO = null
|
39 |
+
|
40 |
+
[components.ner.model.tok2vec]
|
41 |
+
@architectures = "spacy-transformers.TransformerListener.v1"
|
42 |
+
grad_factor = 1.0
|
43 |
+
pooling = {"@layers":"reduce_mean.v1"}
|
44 |
+
upstream = "*"
|
45 |
+
|
46 |
+
[components.transformer]
|
47 |
+
factory = "transformer"
|
48 |
+
max_batch_items = 4096
|
49 |
+
set_extra_annotations = {"@annotation_setters":"spacy-transformers.null_annotation_setter.v1"}
|
50 |
+
|
51 |
+
[components.transformer.model]
|
52 |
+
@architectures = "spacy-transformers.TransformerModel.v3"
|
53 |
+
name = "roberta-base"
|
54 |
+
mixed_precision = false
|
55 |
+
|
56 |
+
[components.transformer.model.get_spans]
|
57 |
+
@span_getters = "spacy-transformers.strided_spans.v1"
|
58 |
+
window = 128
|
59 |
+
stride = 96
|
60 |
+
|
61 |
+
[components.transformer.model.grad_scaler_config]
|
62 |
+
|
63 |
+
[components.transformer.model.tokenizer_config]
|
64 |
+
use_fast = true
|
65 |
+
|
66 |
+
[components.transformer.model.transformer_config]
|
67 |
+
|
68 |
+
[corpora]
|
69 |
+
|
70 |
+
[corpora.dev]
|
71 |
+
@readers = "spacy.Corpus.v1"
|
72 |
+
path = ${paths.dev}
|
73 |
+
max_length = 0
|
74 |
+
gold_preproc = false
|
75 |
+
limit = 0
|
76 |
+
augmenter = null
|
77 |
+
|
78 |
+
[corpora.train]
|
79 |
+
@readers = "spacy.Corpus.v1"
|
80 |
+
path = ${paths.train}
|
81 |
+
max_length = 0
|
82 |
+
gold_preproc = false
|
83 |
+
limit = 0
|
84 |
+
augmenter = null
|
85 |
+
|
86 |
+
[training]
|
87 |
+
accumulate_gradient = 3
|
88 |
+
dev_corpus = "corpora.dev"
|
89 |
+
train_corpus = "corpora.train"
|
90 |
+
seed = ${system.seed}
|
91 |
+
gpu_allocator = ${system.gpu_allocator}
|
92 |
+
dropout = 0.1
|
93 |
+
patience = 1600
|
94 |
+
max_epochs = 0
|
95 |
+
max_steps = 20000
|
96 |
+
eval_frequency = 200
|
97 |
+
frozen_components = []
|
98 |
+
annotating_components = []
|
99 |
+
before_to_disk = null
|
100 |
+
before_update = null
|
101 |
+
|
102 |
+
[training.batcher]
|
103 |
+
@batchers = "spacy.batch_by_padded.v1"
|
104 |
+
discard_oversize = true
|
105 |
+
size = 2000
|
106 |
+
buffer = 256
|
107 |
+
get_length = null
|
108 |
+
|
109 |
+
[training.logger]
|
110 |
+
@loggers = "spacy.ConsoleLogger.v1"
|
111 |
+
progress_bar = false
|
112 |
+
|
113 |
+
[training.optimizer]
|
114 |
+
@optimizers = "Adam.v1"
|
115 |
+
beta1 = 0.9
|
116 |
+
beta2 = 0.999
|
117 |
+
L2_is_weight_decay = true
|
118 |
+
L2 = 0.01
|
119 |
+
grad_clip = 1.0
|
120 |
+
use_averages = false
|
121 |
+
eps = 0.00000001
|
122 |
+
|
123 |
+
[training.optimizer.learn_rate]
|
124 |
+
@schedules = "warmup_linear.v1"
|
125 |
+
warmup_steps = 250
|
126 |
+
total_steps = 20000
|
127 |
+
initial_rate = 0.00005
|
128 |
+
|
129 |
+
[training.score_weights]
|
130 |
+
ents_f = 1.0
|
131 |
+
ents_p = 0.0
|
132 |
+
ents_r = 0.0
|
133 |
+
ents_per_type = null
|
134 |
+
|
135 |
+
[pretraining]
|
136 |
+
|
137 |
+
[initialize]
|
138 |
+
vectors = ${paths.vectors}
|
139 |
+
init_tok2vec = ${paths.init_tok2vec}
|
140 |
+
vocab_data = null
|
141 |
+
lookups = null
|
142 |
+
before_init = null
|
143 |
+
after_init = null
|
144 |
+
|
145 |
+
[initialize.components]
|
146 |
+
|
147 |
[initialize.tokenizer]
|
en_pipeline-any-py3-none-any.whl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13f2aa9ee41c224f5308d0df8762fdfed2cdc0459bb78234277e721b764001e3
|
3 |
+
size 425416363
|
meta.json
CHANGED
@@ -10,13 +10,13 @@
|
|
10 |
"spacy_version":">=3.7.5,<3.8.0",
|
11 |
"spacy_git_version":"a6d0fc360",
|
12 |
"vectors":{
|
13 |
-
"width":
|
14 |
-
"vectors":
|
15 |
-
"keys":
|
16 |
-
"name":
|
17 |
},
|
18 |
"labels":{
|
19 |
-
"
|
20 |
|
21 |
],
|
22 |
"ner":[
|
@@ -33,35 +33,35 @@
|
|
33 |
]
|
34 |
},
|
35 |
"pipeline":[
|
36 |
-
"
|
37 |
"ner"
|
38 |
],
|
39 |
"components":[
|
40 |
-
"
|
41 |
"ner"
|
42 |
],
|
43 |
"disabled":[
|
44 |
|
45 |
],
|
46 |
"performance":{
|
47 |
-
"ents_f":0.
|
48 |
-
"ents_p":0.
|
49 |
-
"ents_r":0.
|
50 |
"ents_per_type":{
|
51 |
"SI UNIT ":{
|
52 |
-
"p":0.
|
53 |
-
"r":0.
|
54 |
-
"f":0.
|
55 |
},
|
56 |
"TIME UNIT":{
|
57 |
-
"p":0
|
58 |
"r":1.0,
|
59 |
-
"f":0
|
60 |
},
|
61 |
"NUMBER":{
|
62 |
-
"p":0
|
63 |
"r":1.0,
|
64 |
-
"f":0
|
65 |
},
|
66 |
"THOUSANDS OPERATOR":{
|
67 |
"p":1.0,
|
@@ -70,8 +70,8 @@
|
|
70 |
},
|
71 |
"OPERATOR":{
|
72 |
"p":1.0,
|
73 |
-
"r":0
|
74 |
-
"f":0
|
75 |
},
|
76 |
"FRACTION":{
|
77 |
"p":1.0,
|
@@ -79,9 +79,9 @@
|
|
79 |
"f":1.0
|
80 |
},
|
81 |
"CHEMICAL TERM":{
|
82 |
-
"p":0.
|
83 |
-
"r":0
|
84 |
-
"f":0.
|
85 |
},
|
86 |
"DECIMAL":{
|
87 |
"p":0.6666666667,
|
@@ -94,15 +94,15 @@
|
|
94 |
"f":1.0
|
95 |
},
|
96 |
"RATIO":{
|
97 |
-
"p":0
|
98 |
-
"r":0
|
99 |
-
"f":0
|
100 |
}
|
101 |
},
|
102 |
-
"
|
103 |
-
"ner_loss":
|
104 |
},
|
105 |
"requirements":[
|
106 |
-
|
107 |
]
|
108 |
}
|
|
|
10 |
"spacy_version":">=3.7.5,<3.8.0",
|
11 |
"spacy_git_version":"a6d0fc360",
|
12 |
"vectors":{
|
13 |
+
"width":0,
|
14 |
+
"vectors":0,
|
15 |
+
"keys":0,
|
16 |
+
"name":null
|
17 |
},
|
18 |
"labels":{
|
19 |
+
"transformer":[
|
20 |
|
21 |
],
|
22 |
"ner":[
|
|
|
33 |
]
|
34 |
},
|
35 |
"pipeline":[
|
36 |
+
"transformer",
|
37 |
"ner"
|
38 |
],
|
39 |
"components":[
|
40 |
+
"transformer",
|
41 |
"ner"
|
42 |
],
|
43 |
"disabled":[
|
44 |
|
45 |
],
|
46 |
"performance":{
|
47 |
+
"ents_f":0.9919901417,
|
48 |
+
"ents_p":0.9877300613,
|
49 |
+
"ents_r":0.9962871287,
|
50 |
"ents_per_type":{
|
51 |
"SI UNIT ":{
|
52 |
+
"p":0.9841584158,
|
53 |
+
"r":0.994,
|
54 |
+
"f":0.9890547264
|
55 |
},
|
56 |
"TIME UNIT":{
|
57 |
+
"p":1.0,
|
58 |
"r":1.0,
|
59 |
+
"f":1.0
|
60 |
},
|
61 |
"NUMBER":{
|
62 |
+
"p":1.0,
|
63 |
"r":1.0,
|
64 |
+
"f":1.0
|
65 |
},
|
66 |
"THOUSANDS OPERATOR":{
|
67 |
"p":1.0,
|
|
|
70 |
},
|
71 |
"OPERATOR":{
|
72 |
"p":1.0,
|
73 |
+
"r":1.0,
|
74 |
+
"f":1.0
|
75 |
},
|
76 |
"FRACTION":{
|
77 |
"p":1.0,
|
|
|
79 |
"f":1.0
|
80 |
},
|
81 |
"CHEMICAL TERM":{
|
82 |
+
"p":0.9814814815,
|
83 |
+
"r":1.0,
|
84 |
+
"f":0.9906542056
|
85 |
},
|
86 |
"DECIMAL":{
|
87 |
"p":0.6666666667,
|
|
|
94 |
"f":1.0
|
95 |
},
|
96 |
"RATIO":{
|
97 |
+
"p":1.0,
|
98 |
+
"r":1.0,
|
99 |
+
"f":1.0
|
100 |
}
|
101 |
},
|
102 |
+
"transformer_loss":366.8304179548,
|
103 |
+
"ner_loss":358.1879557502
|
104 |
},
|
105 |
"requirements":[
|
106 |
+
"spacy-transformers>=1.3.5,<1.4.0"
|
107 |
]
|
108 |
}
|
ner/cfg
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
-
{
|
2 |
-
"moves":null,
|
3 |
-
"update_with_oracle_cut_size":100,
|
4 |
-
"multitasks":[
|
5 |
-
|
6 |
-
],
|
7 |
-
"min_action_freq":1,
|
8 |
-
"learn_tokens":false,
|
9 |
-
"beam_width":1,
|
10 |
-
"beam_density":0.0,
|
11 |
-
"beam_update_prob":0.0,
|
12 |
-
"incorrect_spans_key":null
|
13 |
}
|
|
|
1 |
+
{
|
2 |
+
"moves":null,
|
3 |
+
"update_with_oracle_cut_size":100,
|
4 |
+
"multitasks":[
|
5 |
+
|
6 |
+
],
|
7 |
+
"min_action_freq":1,
|
8 |
+
"learn_tokens":false,
|
9 |
+
"beam_width":1,
|
10 |
+
"beam_density":0.0,
|
11 |
+
"beam_update_prob":0.0,
|
12 |
+
"incorrect_spans_key":null
|
13 |
}
|
ner/model
CHANGED
Binary files a/ner/model and b/ner/model differ
|
|
ner/moves
CHANGED
@@ -1 +1 @@
|
|
1 |
-
��moves��{"0":{},"1":{"SI UNIT ":
|
|
|
1 |
+
��moves��{"0":{},"1":{"SI UNIT ":1069,"TIME UNIT":447,"CHEMICAL TERM":72,"LEADING ZERO":6,"RATIO":5,"OPERATOR":5,"NUMBER":3,"FRACTION":3,"DECIMAL":2,"THOUSANDS OPERATOR":1},"2":{"SI UNIT ":1069,"TIME UNIT":447,"CHEMICAL TERM":72,"LEADING ZERO":6,"RATIO":5,"OPERATOR":5,"NUMBER":3,"FRACTION":3,"DECIMAL":2,"THOUSANDS OPERATOR":1},"3":{"SI UNIT ":1069,"TIME UNIT":447,"CHEMICAL TERM":72,"LEADING ZERO":6,"RATIO":5,"OPERATOR":5,"NUMBER":3,"FRACTION":3,"DECIMAL":2,"THOUSANDS OPERATOR":1},"4":{"SI UNIT ":1069,"TIME UNIT":447,"CHEMICAL TERM":72,"LEADING ZERO":6,"RATIO":5,"OPERATOR":5,"NUMBER":3,"FRACTION":3,"DECIMAL":2,"THOUSANDS OPERATOR":1,"":1},"5":{"":1}}�cfg��neg_key�
|
transformer/model
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 502026969
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bae57e99109ce4380620a2852aefd45e791c60743e55b3cd7c47296ea55dae5f
|
3 |
size 502026969
|
vocab/key2row
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:76be8b528d0075f7aae98d6fa57a6d3c83ae480a8469e668d7b0af968995ac71
|
3 |
+
size 1
|
vocab/strings.json
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:282296599e3b7dbbc1cdb0dcb849aff92eb335406e2e31493bd5ffced559408d
|
3 |
+
size 25769
|
vocab/vectors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:14772b683e726436d5948ad3fff2b43d036ef2ebbe3458aafed6004e05a40706
|
3 |
+
size 128
|
vocab/vectors.cfg
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
{
|
2 |
-
"mode":"default"
|
3 |
}
|
|
|
1 |
+
{
|
2 |
+
"mode":"default"
|
3 |
}
|