File size: 853 Bytes
cd6258f f8a8153 cd6258f f8a8153 cd6258f 65118ef cd6258f 64cbe69 cd6258f 27de200 65118ef cd6258f 65118ef 3b741be cd6258f 3b741be 65118ef cd6258f 0a08cfa f8a8153 cd6258f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
---
language:
- de
tags:
- deepset/gbert-large
---
#German Sentiment Analysis
This model predicts sentiment for German text.
#Usage
First set up the model:
```python
# if necessary:
# !pip install transformers
from transformers import pipeline
sentiment_model = pipeline(model="aari1995/German_Sentiment")
```
to use it:
```python
sentence = ["Ich liebe die Bahn. Pünktlich wie immer ... -.-","Krasser Service"]
result = sentiment_model(sentence)
print(result)
#Output:
#[{'label': 'negative', 'score': 0.4935680031776428},{'label': 'positive', 'score': 0.5790663957595825}]
```
#Credits / Special Thanks:
This model was fine-tuned by Aaron Chibb. It is trained on [twitter dataset by tygiangz](https://huggingface.co/datasets/tyqiangz/multilingual-sentiments) and based on gBERT-large by [deepset](https://huggingface.co/deepset/gbert-large). |