da-sentiment-base / README.md
elishowk's picture
Automatic correction of README.md metadata. Contact website@huggingface.co for any question
2a4e7c0
metadata
language:
  - da
tags:
  - bert
  - pytorch
  - sentiment
  - polarity
license: cc-by-sa-4.0
datasets:
  - Twitter Sentiment
  - Europarl Sentiment
metrics:
  - f1
widget:
  - text: Det er super godt

Danish BERT Tone for sentiment polarity detection

The BERT Tone model detects sentiment polarity (positive, neutral or negative) in Danish texts. It has been finetuned on the pretrained Danish BERT model by BotXO.

See the DaNLP documentation for more details.

Here is how to use the model:

from transformers import BertTokenizer, BertForSequenceClassification

model = BertForSequenceClassification.from_pretrained("DaNLP/da-bert-tone-sentiment-polarity")
tokenizer = BertTokenizer.from_pretrained("DaNLP/da-bert-tone-sentiment-polarity")

Training data

The data used for training come from the Twitter Sentiment and EuroParl sentiment 2 datasets.