baukearends commited on
Commit
b10be2f
1 Parent(s): 3402b6f

Update spaCy pipeline

Browse files
.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
+ nl_Echocardiogram_SpanCategorizer_lv_syst_func-any-py3-none-any.whl filter=lfs diff=lfs merge=lfs -text
37
+ tok2vec/model filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - spacy
4
+ language:
5
+ - nl
6
+ license: cc-by-sa-4.0
7
+ model-index:
8
+ - name: nl_Echocardiogram_SpanCategorizer_lv_syst_func
9
+ results: []
10
+ ---
11
+ Package to classify spans for the presence and severity of left ventricular systolic dysfunction in Dutch echocardiogram reports.
12
+
13
+ | Feature | Description |
14
+ | --- | --- |
15
+ | **Name** | `nl_Echocardiogram_SpanCategorizer_lv_syst_func` |
16
+ | **Version** | `1.0.0` |
17
+ | **spaCy** | `>=3.7.4,<3.8.0` |
18
+ | **Default Pipeline** | `tok2vec`, `spancat` |
19
+ | **Components** | `tok2vec`, `spancat` |
20
+ | **Vectors** | 0 keys, 0 unique vectors (0 dimensions) |
21
+ | **Sources** | n/a |
22
+ | **License** | `cc-ny-sa-4.0` |
23
+ | **Author** | [Bauke Arends]() |
24
+
25
+ ### Label Scheme
26
+
27
+ <details>
28
+
29
+ <summary>View label scheme (7 labels for 1 components)</summary>
30
+
31
+ | Component | Labels |
32
+ | --- | --- |
33
+ | **`spancat`** | `lv_sys_func_normal`, `lv_sys_func_mild`, `lv_sys_func_moderate`, `lv_sys_func_severe`, `lv_sys_func_unchanged`, `lv_sys_func_unknown`, `lv_sys_func_improved` |
34
+
35
+ </details>
36
+
37
+ ### Accuracy
38
+
39
+ | Type | Score |
40
+ | --- | --- |
41
+ | `SPANS_SC_F` | 76.99 |
42
+ | `SPANS_SC_P` | 79.16 |
43
+ | `SPANS_SC_R` | 74.93 |
44
+ | `TOK2VEC_LOSS` | 1264.95 |
45
+ | `SPANCAT_LOSS` | 154542.04 |
config.cfg ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [paths]
2
+ train = "./spacy_data/lv_syst_func//train.spacy"
3
+ dev = "./spacy_data/lv_syst_func//test.spacy"
4
+ vectors = null
5
+ init_tok2vec = null
6
+
7
+ [system]
8
+ gpu_allocator = null
9
+ seed = 0
10
+
11
+ [nlp]
12
+ lang = "nl"
13
+ pipeline = ["tok2vec","spancat"]
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
+ vectors = {"@vectors":"spacy.Vectors.v1"}
21
+
22
+ [components]
23
+
24
+ [components.spancat]
25
+ factory = "spancat_singlelabel"
26
+ allow_overlap = true
27
+ negative_weight = 0.6
28
+ scorer = {"@scorers":"spacy.spancat_scorer.v1"}
29
+ spans_key = "sc"
30
+
31
+ [components.spancat.model]
32
+ @architectures = "spacy.SpanCategorizer.v1"
33
+
34
+ [components.spancat.model.reducer]
35
+ @layers = "spacy.mean_max_reducer.v1"
36
+ hidden_size = 128
37
+
38
+ [components.spancat.model.scorer]
39
+ @layers = "spacy.LinearLogistic.v1"
40
+ nO = null
41
+ nI = null
42
+
43
+ [components.spancat.model.tok2vec]
44
+ @architectures = "spacy.Tok2VecListener.v1"
45
+ width = ${components.tok2vec.model.encode.width}
46
+ upstream = "*"
47
+
48
+ [components.spancat.suggester]
49
+ @misc = "spacy.ngram_range_suggester.v1"
50
+ min_size = 1
51
+ max_size = 25
52
+
53
+ [components.tok2vec]
54
+ factory = "tok2vec"
55
+
56
+ [components.tok2vec.model]
57
+ @architectures = "spacy.Tok2Vec.v2"
58
+
59
+ [components.tok2vec.model.embed]
60
+ @architectures = "spacy.MultiHashEmbed.v2"
61
+ width = ${components.tok2vec.model.encode.width}
62
+ attrs = ["NORM","PREFIX","SUFFIX","SHAPE"]
63
+ rows = [5000,1000,2500,2500]
64
+ include_static_vectors = false
65
+
66
+ [components.tok2vec.model.encode]
67
+ @architectures = "spacy.MaxoutWindowEncoder.v2"
68
+ width = 96
69
+ depth = 4
70
+ window_size = 1
71
+ maxout_pieces = 3
72
+
73
+ [corpora]
74
+
75
+ [corpora.dev]
76
+ @readers = "spacy.Corpus.v1"
77
+ path = ${paths.dev}
78
+ max_length = 0
79
+ gold_preproc = false
80
+ limit = 0
81
+ augmenter = null
82
+
83
+ [corpora.train]
84
+ @readers = "spacy.Corpus.v1"
85
+ path = ${paths.train}
86
+ max_length = 0
87
+ gold_preproc = false
88
+ limit = 0
89
+ augmenter = null
90
+
91
+ [training]
92
+ dev_corpus = "corpora.dev"
93
+ train_corpus = "corpora.train"
94
+ seed = ${system.seed}
95
+ gpu_allocator = ${system.gpu_allocator}
96
+ dropout = 0.1
97
+ accumulate_gradient = 1
98
+ patience = 1600
99
+ max_epochs = 0
100
+ max_steps = 20000
101
+ eval_frequency = 200
102
+ frozen_components = []
103
+ annotating_components = []
104
+ before_to_disk = null
105
+ before_update = null
106
+
107
+ [training.batcher]
108
+ @batchers = "spacy.batch_by_words.v1"
109
+ discard_oversize = false
110
+ tolerance = 0.2
111
+ get_length = null
112
+
113
+ [training.batcher.size]
114
+ @schedules = "compounding.v1"
115
+ start = 100
116
+ stop = 1000
117
+ compound = 1.001
118
+ t = 0.0
119
+
120
+ [training.logger]
121
+ @loggers = "spacy.ConsoleLogger.v1"
122
+ progress_bar = false
123
+
124
+ [training.optimizer]
125
+ @optimizers = "Adam.v1"
126
+ beta1 = 0.9
127
+ beta2 = 0.999
128
+ L2_is_weight_decay = true
129
+ L2 = 0.01
130
+ grad_clip = 1.0
131
+ use_averages = false
132
+ eps = 0.00000001
133
+ learn_rate = 0.001
134
+
135
+ [training.score_weights]
136
+ spans_sc_f = 1.0
137
+ spans_sc_p = 0.0
138
+ spans_sc_r = 0.0
139
+
140
+ [pretraining]
141
+
142
+ [initialize]
143
+ vectors = ${paths.vectors}
144
+ init_tok2vec = ${paths.init_tok2vec}
145
+ vocab_data = null
146
+ lookups = null
147
+ before_init = null
148
+ after_init = null
149
+
150
+ [initialize.components]
151
+
152
+ [initialize.components.spancat]
153
+
154
+ [initialize.components.spancat.labels]
155
+ @readers = "spacy.read_labels.v1"
156
+ path = "corpus/labels/spancat.json"
157
+ require = false
158
+
159
+ [initialize.tokenizer]
meta.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "lang":"nl",
3
+ "name":"Echocardiogram_SpanCategorizer_lv_syst_func",
4
+ "version":"1.0.0",
5
+ "description":"Package to classify spans for the presence and severity of left ventricular systolic dysfunction in Dutch echocardiogram reports.",
6
+ "author":"Bauke Arends",
7
+ "email":"b.k.o.arends-4@umcutrecht.nl",
8
+ "url":"",
9
+ "license":"cc-by-sa-4.0",
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
+ "tok2vec":[
20
+
21
+ ],
22
+ "spancat":[
23
+ "lv_sys_func_normal",
24
+ "lv_sys_func_mild",
25
+ "lv_sys_func_moderate",
26
+ "lv_sys_func_severe",
27
+ "lv_sys_func_unchanged",
28
+ "lv_sys_func_unknown",
29
+ "lv_sys_func_improved"
30
+ ]
31
+ },
32
+ "pipeline":[
33
+ "tok2vec",
34
+ "spancat"
35
+ ],
36
+ "components":[
37
+ "tok2vec",
38
+ "spancat"
39
+ ],
40
+ "disabled":[
41
+
42
+ ],
43
+ "performance":{
44
+ "spans_sc_f":0.7698574338,
45
+ "spans_sc_p":0.7916230366,
46
+ "spans_sc_r":0.7492566898,
47
+ "tok2vec_loss":12.6495223089,
48
+ "spancat_loss":1545.420399487
49
+ },
50
+ "requirements":[
51
+
52
+ ]
53
+ }
meta_hf.json ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "lang": "nl",
3
+ "name": "Echocardiogram_SpanCategorizer_lv_syst_func",
4
+ "version": "1.0.0",
5
+ "spacy_version": ">=3.7.4,<3.8.0",
6
+ "description": "Package to classify spans for the presence and severity of left ventricular systolic dysfunction in Dutch echocardiogram reports.",
7
+ "author": "Bauke Arends",
8
+ "email": "b.k.o.arends-4@umcutrecht.nl",
9
+ "url": "",
10
+ "license": "cc-by-sa-4.0",
11
+ "spacy_git_version": "bff8725f4",
12
+ "vectors": {
13
+ "width": 0,
14
+ "vectors": 0,
15
+ "keys": 0,
16
+ "name": null,
17
+ "mode": "default"
18
+ },
19
+ "labels": {
20
+ "tok2vec": [],
21
+ "spancat": [
22
+ "lv_sys_func_normal",
23
+ "lv_sys_func_mild",
24
+ "lv_sys_func_moderate",
25
+ "lv_sys_func_severe",
26
+ "lv_sys_func_unchanged",
27
+ "lv_sys_func_unknown",
28
+ "lv_sys_func_improved"
29
+ ]
30
+ },
31
+ "pipeline": [
32
+ "tok2vec",
33
+ "spancat"
34
+ ],
35
+ "components": [
36
+ "tok2vec",
37
+ "spancat"
38
+ ],
39
+ "disabled": [],
40
+ "performance": {
41
+ "spans_sc_f": 0.7698574338,
42
+ "spans_sc_p": 0.7916230366,
43
+ "spans_sc_r": 0.7492566898,
44
+ "tok2vec_loss": 12.6495223089,
45
+ "spancat_loss": 1545.420399487
46
+ }
47
+ }
nl_Echocardiogram_SpanCategorizer_lv_syst_func-any-py3-none-any.whl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:79c0f7bc30b983d7e68c6a3eb0f52b951a1a71a9932e76a94f01e6a85973f386
3
+ size 6229629
spancat/cfg ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "labels":[
3
+ "lv_sys_func_normal",
4
+ "lv_sys_func_mild",
5
+ "lv_sys_func_moderate",
6
+ "lv_sys_func_severe",
7
+ "lv_sys_func_unchanged",
8
+ "lv_sys_func_unknown",
9
+ "lv_sys_func_improved"
10
+ ],
11
+ "spans_key":"sc",
12
+ "threshold":null,
13
+ "max_positive":1,
14
+ "negative_weight":0.6,
15
+ "allow_overlap":true
16
+ }
spancat/model ADDED
Binary file (598 kB). View file
 
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:c010b69304b48be637cdea26d95f49f7ec453197f033a1e6a972ee693434a2c3
3
+ size 6009091
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
+ }