Remove limitation due to v1.4.0 patch
Browse files
README.md
CHANGED
@@ -82,18 +82,4 @@ model = SpanMarkerModel.from_pretrained("tomaarsen/span-marker-xlm-roberta-base-
|
|
82 |
entities = model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris .")
|
83 |
```
|
84 |
|
85 |
-
### Limitations
|
86 |
-
|
87 |
-
**Warning**: This model works best when punctuation is separated from the prior words, so
|
88 |
-
```python
|
89 |
-
# ✅
|
90 |
-
model.predict("He plays J. Robert Oppenheimer , an American theoretical physicist .")
|
91 |
-
# ❌
|
92 |
-
model.predict("He plays J. Robert Oppenheimer, an American theoretical physicist.")
|
93 |
-
|
94 |
-
# You can also supply a list of words directly: ✅
|
95 |
-
model.predict(["He", "plays", "J.", "Robert", "Oppenheimer", ",", "an", "American", "theoretical", "physicist", "."])
|
96 |
-
```
|
97 |
-
The same may be beneficial for some languages, such as splitting `"l'ocean Atlantique"` into `"l' ocean Atlantique"`.
|
98 |
-
|
99 |
See the [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) repository for documentation and additional information on this library.
|
|
|
82 |
entities = model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris .")
|
83 |
```
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
See the [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) repository for documentation and additional information on this library.
|