finiteautomata commited on
Commit
c65b4a1
1 Parent(s): b8dcf50

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -0
README.md CHANGED
@@ -15,6 +15,26 @@ Repository: [https://github.com/pysentimiento/pysentimiento/](https://github.com
15
 
16
  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.
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
 
20
  ## Results
15
 
16
  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.
17
 
18
+ ## Usage
19
+
20
+ 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
21
+
22
+ ```python
23
+ from pysentimiento import create_analyzer
24
+
25
+ pos_analyzer = create_analyzer("pos", lang="es")
26
+
27
+ pos_analyzer.predict("Quiero que esto funcione correctamente! @perezjotaeme")
28
+
29
+
30
+ >[{'type': 'PROPN', 'text': 'Quiero', 'start': 0, 'end': 6},
31
+ > {'type': 'SCONJ', 'text': 'que', 'start': 7, 'end': 10},
32
+ > {'type': 'PRON', 'text': 'esto', 'start': 11, 'end': 15},
33
+ > {'type': 'VERB', 'text': 'funcione', 'start': 16, 'end': 24},
34
+ > {'type': 'ADV', 'text': 'correctamente', 'start': 25, 'end': 38},
35
+ > {'type': 'PUNCT', 'text': '!', 'start': 38, 'end': 39},
36
+ > {'type': 'NOUN', 'text': '@perezjotaeme', 'start': 40, 'end': 53}]
37
+ ```
38
 
39
 
40
  ## Results