Upload model
Browse files- README.md +5 -34
- config.json +3 -3
- pytorch_model.bin +1 -1
README.md
CHANGED
@@ -3,40 +3,11 @@
|
|
3 |
license: apache-2.0
|
4 |
library_name: span-marker
|
5 |
tags:
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
pipeline_tag: token-classification
|
11 |
-
model-index:
|
12 |
-
- name: SpanMarker w. bert-tiny on CoNLL03 by Tom Aarsen
|
13 |
-
results:
|
14 |
-
- task:
|
15 |
-
type: token-classification
|
16 |
-
name: Named Entity Recognition
|
17 |
-
dataset:
|
18 |
-
type: conll2003
|
19 |
-
name: CoNLL03
|
20 |
-
split: test
|
21 |
-
revision: 01ad4ad271976c5258b9ed9b910469a806ff3288
|
22 |
-
metrics:
|
23 |
-
- type: f1
|
24 |
-
value: 0.7956403269754768
|
25 |
-
name: F1
|
26 |
-
- type: precision
|
27 |
-
value: 0.8469028382017817
|
28 |
-
name: Precision
|
29 |
-
- type: recall
|
30 |
-
value: 0.750229399889888
|
31 |
-
name: Recall
|
32 |
-
datasets:
|
33 |
-
- conll2003
|
34 |
-
language:
|
35 |
-
- en
|
36 |
-
metrics:
|
37 |
-
- f1
|
38 |
-
- recall
|
39 |
-
- precision
|
40 |
---
|
41 |
|
42 |
# SpanMarker for Named Entity Recognition
|
@@ -57,7 +28,7 @@ You can then run inference with this model like so:
|
|
57 |
from span_marker import SpanMarkerModel
|
58 |
|
59 |
# Download from the 🤗 Hub
|
60 |
-
model = SpanMarkerModel.from_pretrained("
|
61 |
# Run inference
|
62 |
entities = model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris.")
|
63 |
```
|
|
|
3 |
license: apache-2.0
|
4 |
library_name: span-marker
|
5 |
tags:
|
6 |
+
- span-marker
|
7 |
+
- token-classification
|
8 |
+
- ner
|
9 |
+
- named-entity-recognition
|
10 |
pipeline_tag: token-classification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
# SpanMarker for Named Entity Recognition
|
|
|
28 |
from span_marker import SpanMarkerModel
|
29 |
|
30 |
# Download from the 🤗 Hub
|
31 |
+
model = SpanMarkerModel.from_pretrained("span_marker_model_name")
|
32 |
# Run inference
|
33 |
entities = model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris.")
|
34 |
```
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "models\\bt-conll-full-
|
3 |
"architectures": [
|
4 |
"SpanMarkerModel"
|
5 |
],
|
@@ -96,7 +96,7 @@
|
|
96 |
"use_cache": true,
|
97 |
"vocab_size": 30524
|
98 |
},
|
99 |
-
"entity_max_length":
|
100 |
"id2label": {
|
101 |
"0": "O",
|
102 |
"1": "LOC",
|
@@ -122,7 +122,7 @@
|
|
122 |
"ORG": 3,
|
123 |
"PER": 4
|
124 |
},
|
125 |
-
"marker_max_length":
|
126 |
"model_max_length": 256,
|
127 |
"model_max_length_default": 512,
|
128 |
"model_type": "span-marker",
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "models\\bt-conll-full-7\\checkpoint-final",
|
3 |
"architectures": [
|
4 |
"SpanMarkerModel"
|
5 |
],
|
|
|
96 |
"use_cache": true,
|
97 |
"vocab_size": 30524
|
98 |
},
|
99 |
+
"entity_max_length": 5,
|
100 |
"id2label": {
|
101 |
"0": "O",
|
102 |
"1": "LOC",
|
|
|
122 |
"ORG": 3,
|
123 |
"PER": 4
|
124 |
},
|
125 |
+
"marker_max_length": 128,
|
126 |
"model_max_length": 256,
|
127 |
"model_max_length_default": 512,
|
128 |
"model_type": "span-marker",
|
pytorch_model.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 17567279
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3e0d5ca9cb98d1582e67ff4c8154587d5f3f4796e6ff7665a9f6d2c866b710c
|
3 |
size 17567279
|