Remove limitation since v1.4.0 release
Browse files
README.md
CHANGED
|
@@ -119,20 +119,6 @@ model = SpanMarkerModel.from_pretrained("tomaarsen/span-marker-xlm-roberta-base-
|
|
| 119 |
entities = model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris.")
|
| 120 |
```
|
| 121 |
|
| 122 |
-
### Limitations
|
| 123 |
-
|
| 124 |
-
**Warning**: This model works best when punctuation is separated from the prior words, so
|
| 125 |
-
```python
|
| 126 |
-
# ✅
|
| 127 |
-
model.predict("He plays J. Robert Oppenheimer , an American theoretical physicist .")
|
| 128 |
-
# ❌
|
| 129 |
-
model.predict("He plays J. Robert Oppenheimer, an American theoretical physicist.")
|
| 130 |
-
|
| 131 |
-
# You can also supply a list of words directly: ✅
|
| 132 |
-
model.predict(["He", "plays", "J.", "Robert", "Oppenheimer", ",", "an", "American", "theoretical", "physicist", "."])
|
| 133 |
-
```
|
| 134 |
-
The same may be beneficial for some languages, such as splitting `"l'ocean Atlantique"` into `"l' ocean Atlantique"`.
|
| 135 |
-
|
| 136 |
See the [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) repository for documentation and additional information on this library.
|
| 137 |
|
| 138 |
## Contributions
|
|
|
|
| 119 |
entities = model.predict("Amelia Earhart flew her single engine Lockheed Vega 5B across the Atlantic to Paris.")
|
| 120 |
```
|
| 121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
See the [SpanMarker](https://github.com/tomaarsen/SpanMarkerNER) repository for documentation and additional information on this library.
|
| 123 |
|
| 124 |
## Contributions
|