lterriel commited on
Commit
7ddeafa
1 Parent(s): 6eb8da9

Update spaCy pipeline

Browse files
.gitattributes CHANGED
@@ -30,3 +30,7 @@ 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_with_vectors-any-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
34
+ tok2vec/model filter=lfs diff=lfs merge=lfs -text
35
+ vocab/vectors filter=lfs diff=lfs merge=lfs -text
36
+ vocab/key2row 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_with_vectors
9
+ results:
10
+ - task:
11
+ name: NER
12
+ type: token-classification
13
+ metrics:
14
+ - name: NER Precision
15
+ type: precision
16
+ value: 0.8829593693
17
+ - name: NER Recall
18
+ type: recall
19
+ value: 0.8489795918
20
+ - name: NER F Score
21
+ type: f_score
22
+ value: 0.8656361474
23
+ ---
24
+ | Feature | Description |
25
+ | --- | --- |
26
+ | **Name** | `fr_ner4archives_v3_with_vectors` |
27
+ | **Version** | `0.0.0` |
28
+ | **spaCy** | `>=3.4.1,<3.5.0` |
29
+ | **Default Pipeline** | `tok2vec`, `ner` |
30
+ | **Components** | `tok2vec`, `ner` |
31
+ | **Vectors** | 500000 keys, 500000 unique vectors (300 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` | 86.56 |
53
+ | `ENTS_P` | 88.30 |
54
+ | `ENTS_R` | 84.90 |
55
+ | `TOK2VEC_LOSS` | 13527.63 |
56
+ | `NER_LOSS` | 58805.82 |
config.cfg ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [paths]
2
+ train = "corpus/train.spacy"
3
+ dev = "corpus/dev.spacy"
4
+ vectors = "fr_core_news_lg"
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 = true
56
+
57
+ [components.tok2vec.model.encode]
58
+ @architectures = "spacy.MaxoutWindowEncoder.v2"
59
+ width = 256
60
+ depth = 8
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_with_vectors-any-py3-none-any.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c938618ce84a919008d17822980cfd914f9ad8f73231a64cd1ffcaa80ab09f2
3
+ size 587683378
meta.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "lang":"fr",
3
+ "name":"ner4archives_v3_with_vectors",
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":300,
14
+ "vectors":500000,
15
+ "keys":500000,
16
+ "name":"fr_vectors"
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.8656361474,
43
+ "ents_p":0.8829593693,
44
+ "ents_r":0.8489795918,
45
+ "ents_per_type":{
46
+ "PERSON":{
47
+ "p":0.932938856,
48
+ "r":0.9043977055,
49
+ "f":0.9184466019
50
+ },
51
+ "LOCATION":{
52
+ "p":0.9138576779,
53
+ "r":0.8714285714,
54
+ "f":0.8921389397
55
+ },
56
+ "ORGANISATION":{
57
+ "p":0.8111888112,
58
+ "r":0.7972508591,
59
+ "f":0.8041594454
60
+ },
61
+ "TITLE":{
62
+ "p":0.8270440252,
63
+ "r":0.796969697,
64
+ "f":0.8117283951
65
+ },
66
+ "EVENT":{
67
+ "p":0.0,
68
+ "r":0.0,
69
+ "f":0.0
70
+ }
71
+ },
72
+ "tok2vec_loss":135.2763410674,
73
+ "ner_loss":588.0582341063
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 (173 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:08c81c17d3ab25e37394dd25f6e8b7b88366988db264e40748c10c310b6cf608
3
+ size 34434008
vocab/key2row ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d310125304022a2ff941d0224a09dc113048bc06a6d2bc1d551a163cb789c85c
3
+ size 6868181
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
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:055541ce7b97e6d7bc98e75678cf1e58c71c962c1e77ebc674b7247e3ffb75b8
3
+ size 600000128
vocab/vectors.cfg ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "mode":"default"
3
+ }