alexiaschn
commited on
Commit
•
4819b24
1
Parent(s):
20aabb5
Update spaCy pipeline
Browse files- .gitattributes +2 -0
- README.md +56 -0
- config.cfg +147 -0
- fr_camembert_ritter-any-py3-none-any.whl +3 -0
- meta.json +84 -0
- ner/cfg +13 -0
- ner/model +0 -0
- ner/moves +1 -0
- tokenizer +0 -0
- transformer/cfg +3 -0
- transformer/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
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
fr_camembert_ritter-any-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
|
37 |
+
transformer/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_camembert_ritter
|
9 |
+
results:
|
10 |
+
- task:
|
11 |
+
name: NER
|
12 |
+
type: token-classification
|
13 |
+
metrics:
|
14 |
+
- name: NER Precision
|
15 |
+
type: precision
|
16 |
+
value: 0.8580508475
|
17 |
+
- name: NER Recall
|
18 |
+
type: recall
|
19 |
+
value: 0.801980198
|
20 |
+
- name: NER F Score
|
21 |
+
type: f_score
|
22 |
+
value: 0.8290685773
|
23 |
+
---
|
24 |
+
| Feature | Description |
|
25 |
+
| --- | --- |
|
26 |
+
| **Name** | `fr_camembert_ritter` |
|
27 |
+
| **Version** | `0.0.0` |
|
28 |
+
| **spaCy** | `>=3.7.4,<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]() |
|
35 |
+
|
36 |
+
### Label Scheme
|
37 |
+
|
38 |
+
<details>
|
39 |
+
|
40 |
+
<summary>View label scheme (6 labels for 1 components)</summary>
|
41 |
+
|
42 |
+
| Component | Labels |
|
43 |
+
| --- | --- |
|
44 |
+
| **`ner`** | `B-DATE`, `B-LOC`, `B-PER`, `I-DATE`, `I-LOC`, `I-PER` |
|
45 |
+
|
46 |
+
</details>
|
47 |
+
|
48 |
+
### Accuracy
|
49 |
+
|
50 |
+
| Type | Score |
|
51 |
+
| --- | --- |
|
52 |
+
| `ENTS_F` | 82.91 |
|
53 |
+
| `ENTS_P` | 85.81 |
|
54 |
+
| `ENTS_R` | 80.20 |
|
55 |
+
| `TRANSFORMER_LOSS` | 393366.65 |
|
56 |
+
| `NER_LOSS` | 3010080.42 |
|
config.cfg
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[paths]
|
2 |
+
train = "data/div_spacy.spacy"
|
3 |
+
dev = "data/div_spacy_test.spacy"
|
4 |
+
vectors = null
|
5 |
+
init_tok2vec = null
|
6 |
+
|
7 |
+
[system]
|
8 |
+
gpu_allocator = "pytorch"
|
9 |
+
seed = 0
|
10 |
+
|
11 |
+
[nlp]
|
12 |
+
lang = "fr"
|
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 = "camembert-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 = 80
|
95 |
+
max_steps = 10000
|
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]
|
fr_camembert_ritter-any-py3-none-any.whl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4b43f6404df016125cb8519c0aee3e5c74a58ea7cab1103133d7ef5112d50f17
|
3 |
+
size 390294783
|
meta.json
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"lang":"fr",
|
3 |
+
"name":"camembert_ritter",
|
4 |
+
"version":"0.0.0",
|
5 |
+
"description":"",
|
6 |
+
"author":"",
|
7 |
+
"email":"",
|
8 |
+
"url":"",
|
9 |
+
"license":"",
|
10 |
+
"spacy_version":">=3.7.4,<3.8.0",
|
11 |
+
"spacy_git_version":"bff8725f4",
|
12 |
+
"vectors":{
|
13 |
+
"width":0,
|
14 |
+
"vectors":0,
|
15 |
+
"keys":0,
|
16 |
+
"name":null
|
17 |
+
},
|
18 |
+
"labels":{
|
19 |
+
"transformer":[
|
20 |
+
|
21 |
+
],
|
22 |
+
"ner":[
|
23 |
+
"B-DATE",
|
24 |
+
"B-LOC",
|
25 |
+
"B-PER",
|
26 |
+
"I-DATE",
|
27 |
+
"I-LOC",
|
28 |
+
"I-PER"
|
29 |
+
]
|
30 |
+
},
|
31 |
+
"pipeline":[
|
32 |
+
"transformer",
|
33 |
+
"ner"
|
34 |
+
],
|
35 |
+
"components":[
|
36 |
+
"transformer",
|
37 |
+
"ner"
|
38 |
+
],
|
39 |
+
"disabled":[
|
40 |
+
|
41 |
+
],
|
42 |
+
"performance":{
|
43 |
+
"ents_f":0.8290685773,
|
44 |
+
"ents_p":0.8580508475,
|
45 |
+
"ents_r":0.801980198,
|
46 |
+
"ents_per_type":{
|
47 |
+
"B-PER":{
|
48 |
+
"p":0.8834951456,
|
49 |
+
"r":0.7520661157,
|
50 |
+
"f":0.8125
|
51 |
+
},
|
52 |
+
"B-LOC":{
|
53 |
+
"p":0.87,
|
54 |
+
"r":0.935483871,
|
55 |
+
"f":0.9015544041
|
56 |
+
},
|
57 |
+
"I-PER":{
|
58 |
+
"p":0.8731343284,
|
59 |
+
"r":0.7090909091,
|
60 |
+
"f":0.7826086957
|
61 |
+
},
|
62 |
+
"B-DATE":{
|
63 |
+
"p":0.7916666667,
|
64 |
+
"r":0.95,
|
65 |
+
"f":0.8636363636
|
66 |
+
},
|
67 |
+
"I-DATE":{
|
68 |
+
"p":0.8421052632,
|
69 |
+
"r":0.8727272727,
|
70 |
+
"f":0.8571428571
|
71 |
+
},
|
72 |
+
"I-LOC":{
|
73 |
+
"p":0.8333333333,
|
74 |
+
"r":0.4545454545,
|
75 |
+
"f":0.5882352941
|
76 |
+
}
|
77 |
+
},
|
78 |
+
"transformer_loss":3933.666545575,
|
79 |
+
"ner_loss":30100.8042164444
|
80 |
+
},
|
81 |
+
"requirements":[
|
82 |
+
"spacy-transformers>=1.3.5,<1.4.0"
|
83 |
+
]
|
84 |
+
}
|
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 (239 kB). View file
|
|
ner/moves
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
��moves�T{"0":{},"1":{"I-PER":714,"B-PER":511,"B-LOC":369,"B-DATE":240,"I-DATE":215,"I-LOC":45},"2":{"I-PER":714,"B-PER":511,"B-LOC":369,"B-DATE":240,"I-DATE":215,"I-LOC":45},"3":{"I-PER":714,"B-PER":511,"B-LOC":369,"B-DATE":240,"I-DATE":215,"I-LOC":45},"4":{"I-PER":714,"B-PER":511,"B-LOC":369,"B-DATE":240,"I-DATE":215,"I-LOC":45,"":1},"5":{"":1}}�cfg��neg_key�
|
tokenizer
ADDED
The diff for this file is too large to render.
See raw diff
|
|
transformer/cfg
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"max_batch_items":4096
|
3 |
+
}
|
transformer/model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6b672db40f486fbb14a7ec5990c2efebac2adc35e35d2da2ada5f086e589ac6
|
3 |
+
size 445797407
|
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 |
+
}
|