Update README.md
Browse files
README.md
CHANGED
@@ -51,12 +51,6 @@ WOA - Any named work of art (books, movies, songs, etc.)
|
|
51 |
MISC - Miscellaneous entities, that do not belong to the previous categories
|
52 |
```
|
53 |
|
54 |
-
|
55 |
-
### Model Sources
|
56 |
-
|
57 |
-
- **Repository:** [SpanMarker on GitHub](https://github.com/tomaarsen/SpanMarkerNER)
|
58 |
-
- **Thesis:** [SpanMarker For Named Entity Recognition](https://raw.githubusercontent.com/tomaarsen/SpanMarkerNER/main/thesis.pdf)
|
59 |
-
|
60 |
## Uses
|
61 |
|
62 |
### Direct Use for Inference
|
@@ -66,7 +60,7 @@ from span_marker import SpanMarkerModel
|
|
66 |
|
67 |
# Download from the 🤗 Hub
|
68 |
model = SpanMarkerModel.from_pretrained("iahlt/xlm-roberta-base-ar-ner-flat")
|
69 |
-
entities = model.predict(
|
70 |
print(entities)
|
71 |
```
|
72 |
|
|
|
51 |
MISC - Miscellaneous entities, that do not belong to the previous categories
|
52 |
```
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
## Uses
|
55 |
|
56 |
### Direct Use for Inference
|
|
|
60 |
|
61 |
# Download from the 🤗 Hub
|
62 |
model = SpanMarkerModel.from_pretrained("iahlt/xlm-roberta-base-ar-ner-flat")
|
63 |
+
entities = model.predict(<text>)
|
64 |
print(entities)
|
65 |
```
|
66 |
|