Commit
·
3be114f
1
Parent(s):
c5c1a46
Update README.md
Browse files
README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
language:
|
3 |
- es
|
4 |
|
|
|
5 |
tags:
|
6 |
- twitter
|
7 |
- named-entity-recognition
|
@@ -17,6 +18,25 @@ Repository: [https://github.com/pysentimiento/pysentimiento/](https://github.com
|
|
17 |
Model trained with the Spanish/English split of the [LinCE NER corpus](https://ritual.uh.edu/lince/), a code-switched benchmark . Base model is [RoBERTuito](https://github.com/pysentimiento/robertuito), a RoBERTa model trained in Spanish tweets.
|
18 |
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
## Results
|
22 |
|
|
|
2 |
language:
|
3 |
- es
|
4 |
|
5 |
+
library_name: pysentimiento
|
6 |
tags:
|
7 |
- twitter
|
8 |
- named-entity-recognition
|
|
|
18 |
Model trained with the Spanish/English split of the [LinCE NER corpus](https://ritual.uh.edu/lince/), a code-switched benchmark . Base model is [RoBERTuito](https://github.com/pysentimiento/robertuito), a RoBERTa model trained in Spanish tweets.
|
19 |
|
20 |
|
21 |
+
## Usage
|
22 |
+
|
23 |
+
If you want to use this model, we suggest you use it directly from the `pysentimiento` library as it is not working properly with the pipeline due to tokenization issues
|
24 |
+
|
25 |
+
```python
|
26 |
+
from pysentimiento import create_analyzer
|
27 |
+
|
28 |
+
ner_analyzer = create_analyzer("ner", lang="es")
|
29 |
+
|
30 |
+
ner_analyzer.predict("rindanse ante el mejor, leonel andres messi cuccitini. serresiete no existis, segui pastando camellos en el al-nassr")
|
31 |
+
|
32 |
+
|
33 |
+
# [{'type': 'PER',
|
34 |
+
# 'text': 'leonel andres messi cuccitini',
|
35 |
+
# 'start': 24,
|
36 |
+
# 'end': 53},
|
37 |
+
# {'type': 'PER', 'text': 'serresiete', 'start': 55, 'end': 65},
|
38 |
+
# {'type': 'LOC', 'text': 'al-nassr', 'start': 108, 'end': 116}]
|
39 |
+
```
|
40 |
|
41 |
## Results
|
42 |
|