Update spaCy pipeline
Browse files- .gitattributes +2 -0
- README.md +56 -0
- config.cfg +143 -0
- fr_ner4archives_v3_default-any-py3-none-any.whl +3 -0
- meta.json +78 -0
- ner/cfg +13 -0
- ner/model +0 -0
- ner/moves +1 -0
- tok2vec/cfg +3 -0
- tok2vec/model +3 -0
- vocab/key2row +1 -0
- vocab/lookups.bin +3 -0
- vocab/strings.json +0 -0
- vocab/vectors +0 -0
- vocab/vectors.cfg +3 -0
.gitattributes
CHANGED
@@ -30,3 +30,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
30 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
31 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
32 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
30 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
31 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
32 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
33 |
+
fr_ner4archives_v3_default-any-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
|
34 |
+
tok2vec/model filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- spacy
|
4 |
+
- token-classification
|
5 |
+
language:
|
6 |
+
- fr
|
7 |
+
model-index:
|
8 |
+
- name: fr_ner4archives_v3_default
|
9 |
+
results:
|
10 |
+
- task:
|
11 |
+
name: NER
|
12 |
+
type: token-classification
|
13 |
+
metrics:
|
14 |
+
- name: NER Precision
|
15 |
+
type: precision
|
16 |
+
value: 0.8390532544
|
17 |
+
- name: NER Recall
|
18 |
+
type: recall
|
19 |
+
value: 0.8268221574
|
20 |
+
- name: NER F Score
|
21 |
+
type: f_score
|
22 |
+
value: 0.8328928047
|
23 |
+
---
|
24 |
+
| Feature | Description |
|
25 |
+
| --- | --- |
|
26 |
+
| **Name** | `fr_ner4archives_v3_default` |
|
27 |
+
| **Version** | `0.0.0` |
|
28 |
+
| **spaCy** | `>=3.4.1,<3.5.0` |
|
29 |
+
| **Default Pipeline** | `tok2vec`, `ner` |
|
30 |
+
| **Components** | `tok2vec`, `ner` |
|
31 |
+
| **Vectors** | 0 keys, 0 unique vectors (0 dimensions) |
|
32 |
+
| **Sources** | n/a |
|
33 |
+
| **License** | n/a |
|
34 |
+
| **Author** | [n/a]() |
|
35 |
+
|
36 |
+
### Label Scheme
|
37 |
+
|
38 |
+
<details>
|
39 |
+
|
40 |
+
<summary>View label scheme (5 labels for 1 components)</summary>
|
41 |
+
|
42 |
+
| Component | Labels |
|
43 |
+
| --- | --- |
|
44 |
+
| **`ner`** | `EVENT`, `LOCATION`, `ORGANISATION`, `PERSON`, `TITLE` |
|
45 |
+
|
46 |
+
</details>
|
47 |
+
|
48 |
+
### Accuracy
|
49 |
+
|
50 |
+
| Type | Score |
|
51 |
+
| --- | --- |
|
52 |
+
| `ENTS_F` | 83.29 |
|
53 |
+
| `ENTS_P` | 83.91 |
|
54 |
+
| `ENTS_R` | 82.68 |
|
55 |
+
| `TOK2VEC_LOSS` | 68553.28 |
|
56 |
+
| `NER_LOSS` | 18164.88 |
|
config.cfg
ADDED
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[paths]
|
2 |
+
train = "corpus/train.spacy"
|
3 |
+
dev = "corpus/dev.spacy"
|
4 |
+
vectors = null
|
5 |
+
init_tok2vec = null
|
6 |
+
|
7 |
+
[system]
|
8 |
+
gpu_allocator = null
|
9 |
+
seed = 0
|
10 |
+
|
11 |
+
[nlp]
|
12 |
+
lang = "fr"
|
13 |
+
pipeline = ["tok2vec","ner"]
|
14 |
+
batch_size = 1000
|
15 |
+
disabled = []
|
16 |
+
before_creation = null
|
17 |
+
after_creation = null
|
18 |
+
after_pipeline_creation = null
|
19 |
+
tokenizer = {"@tokenizers":"spacy.Tokenizer.v1"}
|
20 |
+
|
21 |
+
[components]
|
22 |
+
|
23 |
+
[components.ner]
|
24 |
+
factory = "ner"
|
25 |
+
incorrect_spans_key = null
|
26 |
+
moves = null
|
27 |
+
scorer = {"@scorers":"spacy.ner_scorer.v1"}
|
28 |
+
update_with_oracle_cut_size = 100
|
29 |
+
|
30 |
+
[components.ner.model]
|
31 |
+
@architectures = "spacy.TransitionBasedParser.v2"
|
32 |
+
state_type = "ner"
|
33 |
+
extra_state_tokens = false
|
34 |
+
hidden_width = 64
|
35 |
+
maxout_pieces = 2
|
36 |
+
use_upper = true
|
37 |
+
nO = null
|
38 |
+
|
39 |
+
[components.ner.model.tok2vec]
|
40 |
+
@architectures = "spacy.Tok2VecListener.v1"
|
41 |
+
width = ${components.tok2vec.model.encode.width}
|
42 |
+
upstream = "*"
|
43 |
+
|
44 |
+
[components.tok2vec]
|
45 |
+
factory = "tok2vec"
|
46 |
+
|
47 |
+
[components.tok2vec.model]
|
48 |
+
@architectures = "spacy.Tok2Vec.v2"
|
49 |
+
|
50 |
+
[components.tok2vec.model.embed]
|
51 |
+
@architectures = "spacy.MultiHashEmbed.v2"
|
52 |
+
width = ${components.tok2vec.model.encode.width}
|
53 |
+
attrs = ["NORM","PREFIX","SUFFIX","SHAPE"]
|
54 |
+
rows = [5000,1000,2500,2500]
|
55 |
+
include_static_vectors = false
|
56 |
+
|
57 |
+
[components.tok2vec.model.encode]
|
58 |
+
@architectures = "spacy.MaxoutWindowEncoder.v2"
|
59 |
+
width = 96
|
60 |
+
depth = 4
|
61 |
+
window_size = 1
|
62 |
+
maxout_pieces = 3
|
63 |
+
|
64 |
+
[corpora]
|
65 |
+
|
66 |
+
[corpora.dev]
|
67 |
+
@readers = "spacy.Corpus.v1"
|
68 |
+
path = ${paths.dev}
|
69 |
+
max_length = 0
|
70 |
+
gold_preproc = false
|
71 |
+
limit = 0
|
72 |
+
augmenter = null
|
73 |
+
|
74 |
+
[corpora.train]
|
75 |
+
@readers = "spacy.Corpus.v1"
|
76 |
+
path = ${paths.train}
|
77 |
+
max_length = 0
|
78 |
+
gold_preproc = false
|
79 |
+
limit = 0
|
80 |
+
augmenter = null
|
81 |
+
|
82 |
+
[training]
|
83 |
+
dev_corpus = "corpora.dev"
|
84 |
+
train_corpus = "corpora.train"
|
85 |
+
seed = ${system.seed}
|
86 |
+
gpu_allocator = ${system.gpu_allocator}
|
87 |
+
dropout = 0.1
|
88 |
+
accumulate_gradient = 1
|
89 |
+
patience = 1600
|
90 |
+
max_epochs = 0
|
91 |
+
max_steps = 20000
|
92 |
+
eval_frequency = 200
|
93 |
+
frozen_components = []
|
94 |
+
annotating_components = []
|
95 |
+
before_to_disk = null
|
96 |
+
|
97 |
+
[training.batcher]
|
98 |
+
@batchers = "spacy.batch_by_words.v1"
|
99 |
+
discard_oversize = false
|
100 |
+
tolerance = 0.2
|
101 |
+
get_length = null
|
102 |
+
|
103 |
+
[training.batcher.size]
|
104 |
+
@schedules = "compounding.v1"
|
105 |
+
start = 100
|
106 |
+
stop = 1000
|
107 |
+
compound = 1.001
|
108 |
+
t = 0.0
|
109 |
+
|
110 |
+
[training.logger]
|
111 |
+
@loggers = "spacy.ConsoleLogger.v1"
|
112 |
+
progress_bar = false
|
113 |
+
|
114 |
+
[training.optimizer]
|
115 |
+
@optimizers = "Adam.v1"
|
116 |
+
beta1 = 0.9
|
117 |
+
beta2 = 0.999
|
118 |
+
L2_is_weight_decay = true
|
119 |
+
L2 = 0.01
|
120 |
+
grad_clip = 1.0
|
121 |
+
use_averages = false
|
122 |
+
eps = 0.00000001
|
123 |
+
learn_rate = 0.001
|
124 |
+
|
125 |
+
[training.score_weights]
|
126 |
+
ents_f = 1.0
|
127 |
+
ents_p = 0.0
|
128 |
+
ents_r = 0.0
|
129 |
+
ents_per_type = null
|
130 |
+
|
131 |
+
[pretraining]
|
132 |
+
|
133 |
+
[initialize]
|
134 |
+
vectors = ${paths.vectors}
|
135 |
+
init_tok2vec = ${paths.init_tok2vec}
|
136 |
+
vocab_data = null
|
137 |
+
lookups = null
|
138 |
+
before_init = null
|
139 |
+
after_init = null
|
140 |
+
|
141 |
+
[initialize.components]
|
142 |
+
|
143 |
+
[initialize.tokenizer]
|
fr_ner4archives_v3_default-any-py3-none-any.whl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:040a5c67a7e5a14e0125b2600e6aff1323f8ba9d800d5ab49446faeaf2dad6e6
|
3 |
+
size 5753256
|
meta.json
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"lang":"fr",
|
3 |
+
"name":"ner4archives_v3_default",
|
4 |
+
"version":"0.0.0",
|
5 |
+
"description":"",
|
6 |
+
"author":"",
|
7 |
+
"email":"",
|
8 |
+
"url":"",
|
9 |
+
"license":"",
|
10 |
+
"spacy_version":">=3.4.1,<3.5.0",
|
11 |
+
"spacy_git_version":"Unknown",
|
12 |
+
"vectors":{
|
13 |
+
"width":0,
|
14 |
+
"vectors":0,
|
15 |
+
"keys":0,
|
16 |
+
"name":null
|
17 |
+
},
|
18 |
+
"labels":{
|
19 |
+
"tok2vec":[
|
20 |
+
|
21 |
+
],
|
22 |
+
"ner":[
|
23 |
+
"EVENT",
|
24 |
+
"LOCATION",
|
25 |
+
"ORGANISATION",
|
26 |
+
"PERSON",
|
27 |
+
"TITLE"
|
28 |
+
]
|
29 |
+
},
|
30 |
+
"pipeline":[
|
31 |
+
"tok2vec",
|
32 |
+
"ner"
|
33 |
+
],
|
34 |
+
"components":[
|
35 |
+
"tok2vec",
|
36 |
+
"ner"
|
37 |
+
],
|
38 |
+
"disabled":[
|
39 |
+
|
40 |
+
],
|
41 |
+
"performance":{
|
42 |
+
"ents_f":0.8328928047,
|
43 |
+
"ents_p":0.8390532544,
|
44 |
+
"ents_r":0.8268221574,
|
45 |
+
"ents_per_type":{
|
46 |
+
"PERSON":{
|
47 |
+
"p":0.8568773234,
|
48 |
+
"r":0.8814531549,
|
49 |
+
"f":0.8689915174
|
50 |
+
},
|
51 |
+
"LOCATION":{
|
52 |
+
"p":0.8458844133,
|
53 |
+
"r":0.8625,
|
54 |
+
"f":0.8541114058
|
55 |
+
},
|
56 |
+
"ORGANISATION":{
|
57 |
+
"p":0.8053435115,
|
58 |
+
"r":0.7250859107,
|
59 |
+
"f":0.7631103074
|
60 |
+
},
|
61 |
+
"TITLE":{
|
62 |
+
"p":0.8296529968,
|
63 |
+
"r":0.796969697,
|
64 |
+
"f":0.8129829985
|
65 |
+
},
|
66 |
+
"EVENT":{
|
67 |
+
"p":0.0,
|
68 |
+
"r":0.0,
|
69 |
+
"f":0.0
|
70 |
+
}
|
71 |
+
},
|
72 |
+
"tok2vec_loss":685.5327779506,
|
73 |
+
"ner_loss":181.6487818236
|
74 |
+
},
|
75 |
+
"requirements":[
|
76 |
+
|
77 |
+
]
|
78 |
+
}
|
ner/cfg
ADDED
@@ -0,0 +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 |
+
}
|
ner/model
ADDED
Binary file (132 kB). View file
|
|
ner/moves
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
��moves�X{"0":{},"1":{"PERSON":3649,"LOCATION":3166,"TITLE":2698,"ORGANISATION":2352,"EVENT":81},"2":{"PERSON":3649,"LOCATION":3166,"TITLE":2698,"ORGANISATION":2352,"EVENT":81},"3":{"PERSON":3649,"LOCATION":3166,"TITLE":2698,"ORGANISATION":2352,"EVENT":81},"4":{"PERSON":3649,"LOCATION":3166,"TITLE":2698,"ORGANISATION":2352,"EVENT":81,"":1},"5":{"":1}}�cfg��neg_key�
|
tok2vec/cfg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
|
3 |
+
}
|
tok2vec/model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f064f4d2fe29200701c8fe0c2bf9a797e232d2d3de9b210a3c7287eef11c973e
|
3 |
+
size 6009091
|
vocab/key2row
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
�
|
vocab/lookups.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:76be8b528d0075f7aae98d6fa57a6d3c83ae480a8469e668d7b0af968995ac71
|
3 |
+
size 1
|
vocab/strings.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
vocab/vectors
ADDED
Binary file (128 Bytes). View file
|
|
vocab/vectors.cfg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"mode":"default"
|
3 |
+
}
|