finiteautomata
commited on
Commit
•
12e0308
1
Parent(s):
d925783
Update README.md
Browse files
README.md
CHANGED
@@ -18,6 +18,18 @@ Model trained with TASS 2020 corpus (around ~5k tweets) of several dialects of S
|
|
18 |
|
19 |
Uses `POS`, `NEG`, `NEU` labels.
|
20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
## Results
|
23 |
|
|
|
18 |
|
19 |
Uses `POS`, `NEG`, `NEU` labels.
|
20 |
|
21 |
+
## Usage
|
22 |
+
|
23 |
+
Use it directly with [pysentimiento](https://github.com/pysentimiento/pysentimiento)
|
24 |
+
|
25 |
+
```python
|
26 |
+
from pysentimiento import create_analyzer
|
27 |
+
analyzer = create_analyzer(task="sentiment", lang="es")
|
28 |
+
|
29 |
+
analyzer.predict("Qué gran jugador es Messi")
|
30 |
+
# returns AnalyzerOutput(output=POS, probas={POS: 0.998, NEG: 0.002, NEU: 0.000})
|
31 |
+
```
|
32 |
+
|
33 |
|
34 |
## Results
|
35 |
|