lterriel commited on
Commit
bb9b866
1 Parent(s): 0af9864

Update spaCy pipeline

Browse files
.gitattributes CHANGED
@@ -29,3 +29,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zstandard filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
32
+ fr_ner4archives_default_test-any-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
33
+ 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_default_test
9
+ results:
10
+ - task:
11
+ name: NER
12
+ type: token-classification
13
+ metrics:
14
+ - name: NER Precision
15
+ type: precision
16
+ value: 0.8
17
+ - name: NER Recall
18
+ type: recall
19
+ value: 0.741301059
20
+ - name: NER F Score
21
+ type: f_score
22
+ value: 0.7695327837
23
+ ---
24
+ | Feature | Description |
25
+ | --- | --- |
26
+ | **Name** | `fr_ner4archives_default_test` |
27
+ | **Version** | `0.0.0` |
28
+ | **spaCy** | `>=3.3.1,<3.4.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` | 76.95 |
53
+ | `ENTS_P` | 80.00 |
54
+ | `ENTS_R` | 74.13 |
55
+ | `TOK2VEC_LOSS` | 76044.50 |
56
+ | `NER_LOSS` | 75529.77 |
config.cfg ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [paths]
2
+ train = "corpus/train.spacy"
3
+ dev = "corpus/dev.spacy"
4
+ raw = null
5
+ init_tok2vec = null
6
+ vectors = null
7
+
8
+ [system]
9
+ gpu_allocator = null
10
+ seed = 0
11
+
12
+ [nlp]
13
+ lang = "fr"
14
+ pipeline = ["tok2vec","ner"]
15
+ tokenizer = {"@tokenizers":"spacy.Tokenizer.v1"}
16
+ disabled = []
17
+ before_creation = null
18
+ after_creation = null
19
+ after_pipeline_creation = null
20
+ batch_size = 1000
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 = true
38
+ nO = null
39
+
40
+ [components.ner.model.tok2vec]
41
+ @architectures = "spacy.Tok2VecListener.v1"
42
+ width = ${components.tok2vec.model.encode.width}
43
+ upstream = "*"
44
+
45
+ [components.tok2vec]
46
+ factory = "tok2vec"
47
+
48
+ [components.tok2vec.model]
49
+ @architectures = "spacy.Tok2Vec.v2"
50
+
51
+ [components.tok2vec.model.embed]
52
+ @architectures = "spacy.MultiHashEmbed.v2"
53
+ width = ${components.tok2vec.model.encode.width}
54
+ attrs = ["ORTH","SHAPE"]
55
+ rows = [5000,2500]
56
+ include_static_vectors = false
57
+
58
+ [components.tok2vec.model.encode]
59
+ @architectures = "spacy.MaxoutWindowEncoder.v2"
60
+ width = 96
61
+ depth = 4
62
+ window_size = 1
63
+ maxout_pieces = 3
64
+
65
+ [corpora]
66
+
67
+ [corpora.dev]
68
+ @readers = "spacy.Corpus.v1"
69
+ path = ${paths.dev}
70
+ max_length = 0
71
+ gold_preproc = false
72
+ limit = 0
73
+ augmenter = null
74
+
75
+ [corpora.train]
76
+ @readers = "spacy.Corpus.v1"
77
+ path = ${paths.train}
78
+ max_length = 2000
79
+ gold_preproc = false
80
+ limit = 0
81
+ augmenter = null
82
+
83
+ [training]
84
+ dev_corpus = "corpora.dev"
85
+ train_corpus = "corpora.train"
86
+ seed = ${system.seed}
87
+ gpu_allocator = ${system.gpu_allocator}
88
+ dropout = 0.1
89
+ accumulate_gradient = 1
90
+ patience = 1600
91
+ max_epochs = 0
92
+ max_steps = 20000
93
+ eval_frequency = 200
94
+ frozen_components = []
95
+ annotating_components = []
96
+ before_to_disk = null
97
+
98
+ [training.batcher]
99
+ @batchers = "spacy.batch_by_words.v1"
100
+ discard_oversize = false
101
+ tolerance = 0.2
102
+ get_length = null
103
+
104
+ [training.batcher.size]
105
+ @schedules = "compounding.v1"
106
+ start = 100
107
+ stop = 1000
108
+ compound = 1.001
109
+ t = 0.0
110
+
111
+ [training.logger]
112
+ @loggers = "spacy.ConsoleLogger.v1"
113
+ progress_bar = false
114
+
115
+ [training.optimizer]
116
+ @optimizers = "Adam.v1"
117
+ beta1 = 0.9
118
+ beta2 = 0.999
119
+ L2_is_weight_decay = true
120
+ L2 = 0.01
121
+ grad_clip = 1.0
122
+ use_averages = false
123
+ eps = 0.00000001
124
+ learn_rate = 0.001
125
+
126
+ [training.score_weights]
127
+ ents_f = 1.0
128
+ ents_p = 0.0
129
+ ents_r = 0.0
130
+ ents_per_type = null
131
+
132
+ [pretraining]
133
+
134
+ [initialize]
135
+ vectors = ${paths.vectors}
136
+ init_tok2vec = ${paths.init_tok2vec}
137
+ vocab_data = null
138
+ lookups = null
139
+ before_init = null
140
+ after_init = null
141
+
142
+ [initialize.components]
143
+
144
+ [initialize.tokenizer]
fr_ner4archives_default_test-any-py3-none-any.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5ca8d045aaf76e1222c8abf828dd77ec0fa1e5e4b5814de3beb9aefbcacf39f
3
+ size 4289363
meta.json ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "lang":"fr",
3
+ "name":"ner4archives_default_test",
4
+ "version":"0.0.0",
5
+ "description":"",
6
+ "author":"",
7
+ "email":"",
8
+ "url":"",
9
+ "license":"",
10
+ "spacy_version":">=3.3.1,<3.4.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.7695327837,
43
+ "ents_p":0.8,
44
+ "ents_r":0.741301059,
45
+ "ents_per_type":{
46
+ "LOCATION":{
47
+ "p":0.8024948025,
48
+ "r":0.8041666667,
49
+ "f":0.8033298647
50
+ },
51
+ "PERSON":{
52
+ "p":0.7597402597,
53
+ "r":0.676300578,
54
+ "f":0.7155963303
55
+ },
56
+ "TITLE":{
57
+ "p":0.8552036199,
58
+ "r":0.7777777778,
59
+ "f":0.8146551724
60
+ },
61
+ "ORGANISATION":{
62
+ "p":0.7990654206,
63
+ "r":0.7008196721,
64
+ "f":0.7467248908
65
+ },
66
+ "EVENT":{
67
+ "p":0.0,
68
+ "r":0.0,
69
+ "f":0.0
70
+ }
71
+ },
72
+ "tok2vec_loss":760.4449992278,
73
+ "ner_loss":755.2976544632
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":2233,"ORGANISATION":2143,"TITLE":2094,"LOCATION":2055,"EVENT":94},"2":{"PERSON":2233,"ORGANISATION":2143,"TITLE":2094,"LOCATION":2055,"EVENT":94},"3":{"PERSON":2233,"ORGANISATION":2143,"TITLE":2094,"LOCATION":2055,"EVENT":94},"4":{"PERSON":2233,"ORGANISATION":2143,"TITLE":2094,"LOCATION":2055,"EVENT":94,"":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:123c075e3375dcd1730ed12a82cad61a79f79ec6d2e9fa60d7b4c601430c3e3b
3
+ size 4443194
tokenizer ADDED
The diff for this file is too large to render. See raw diff
 
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
+ }