Add metrics and train.py reference
Browse files
README.md
CHANGED
@@ -8,11 +8,46 @@ tags:
|
|
8 |
- ner
|
9 |
- named-entity-recognition
|
10 |
pipeline_tag: token-classification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
---
|
12 |
|
13 |
# SpanMarker for Named Entity Recognition
|
14 |
|
15 |
-
This is a [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) model that can be usedfor Named Entity Recognition. In particular, this SpanMarker model uses [xlm-roberta-large](https://huggingface.co/xlm-roberta-large) as the underlying encoder.
|
16 |
|
17 |
## Usage
|
18 |
|
@@ -28,7 +63,7 @@ You can then run inference with this model like so:
|
|
28 |
from span_marker import SpanMarkerModel
|
29 |
|
30 |
# Download from the 🤗 Hub
|
31 |
-
model = SpanMarkerModel.from_pretrained("
|
32 |
# Run inference
|
33 |
entities = model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris.")
|
34 |
```
|
|
|
8 |
- ner
|
9 |
- named-entity-recognition
|
10 |
pipeline_tag: token-classification
|
11 |
+
widget:
|
12 |
+
- text: >-
|
13 |
+
Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic
|
14 |
+
to Paris.
|
15 |
+
example_title: Amelia Earhart
|
16 |
+
model-index:
|
17 |
+
- name: >-
|
18 |
+
SpanMarker w. xlm-roberta-large on CoNLL03 by Tom Aarsen
|
19 |
+
results:
|
20 |
+
- task:
|
21 |
+
type: token-classification
|
22 |
+
name: Named Entity Recognition
|
23 |
+
dataset:
|
24 |
+
type: conll2003
|
25 |
+
name: CoNLL03
|
26 |
+
split: test
|
27 |
+
revision: 01ad4ad271976c5258b9ed9b910469a806ff3288
|
28 |
+
metrics:
|
29 |
+
- type: f1
|
30 |
+
value: 0.9307
|
31 |
+
name: F1
|
32 |
+
- type: precision
|
33 |
+
value: 0.9264
|
34 |
+
name: Precision
|
35 |
+
- type: recall
|
36 |
+
value: 0.9350
|
37 |
+
name: Recall
|
38 |
+
datasets:
|
39 |
+
- conll2003
|
40 |
+
language:
|
41 |
+
- en
|
42 |
+
metrics:
|
43 |
+
- f1
|
44 |
+
- recall
|
45 |
+
- precision
|
46 |
---
|
47 |
|
48 |
# SpanMarker for Named Entity Recognition
|
49 |
|
50 |
+
This is a [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) model that can be usedfor Named Entity Recognition. In particular, this SpanMarker model uses [xlm-roberta-large](https://huggingface.co/xlm-roberta-large) as the underlying encoder. See [train.py](train.py) for the training script.
|
51 |
|
52 |
## Usage
|
53 |
|
|
|
63 |
from span_marker import SpanMarkerModel
|
64 |
|
65 |
# Download from the 🤗 Hub
|
66 |
+
model = SpanMarkerModel.from_pretrained("tomaarsen/span-marker-xlm-roberta-large-conll03")
|
67 |
# Run inference
|
68 |
entities = model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris.")
|
69 |
```
|