Update README.md
Browse files
README.md
CHANGED
@@ -24,18 +24,11 @@ This model is a fine-tuned version of [roberta-base](https://huggingface.co/robe
|
|
24 |
# Usage
|
25 |
|
26 |
```python
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
"Argentine captain Lionel Messi was voted the tournament's best player, winning the Golden Ball. Teammates Emiliano Martínez and Enzo Fernández won the Golden Glove, awarded to the tournament's best goalkeeper, and the Young Player Award, awarded to the tournament's best young player."
|
33 |
-
]
|
34 |
-
entities_per_query = model.predict(test_query)
|
35 |
-
|
36 |
-
for entities in entities_per_query:
|
37 |
-
for entity in entities:
|
38 |
-
print(entity["span"], "-->", entity["label"])
|
39 |
```
|
40 |
|
41 |
## Training and evaluation data
|
|
|
24 |
# Usage
|
25 |
|
26 |
```python
|
27 |
+
from span_marker import SpanMarkerModel
|
28 |
+
|
29 |
+
model = SpanMarkerModel.from_pretrained("krinal/span-marker-robert-base")
|
30 |
+
|
31 |
+
ner_result = model.predict("Argentine captain Lionel Messi won Golden Ball at FIFA world cup 2022")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
```
|
33 |
|
34 |
## Training and evaluation data
|