Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Experimental sentiment analysis based on ~20k of App Store reviews in Swedish.
|
2 |
+
|
3 |
+
### Usage
|
4 |
+
```python
|
5 |
+
from transformers import pipeline
|
6 |
+
|
7 |
+
>>> sa = pipeline('sentiment-analysis', model='marma/bert-base-swedish-cased-sentiment')
|
8 |
+
>>> sa('Det här är ju fantastiskt!')
|
9 |
+
[{'label': 'POSITIVE', 'score': 0.9974609613418579}]
|
10 |
+
|
11 |
+
>>> sa('Den här appen suger!')
|
12 |
+
[{'label': 'NEGATIVE', 'score': 0.998340368270874}]
|
13 |
+
```
|