Downloads · 30 days
946
10% of all-time downloads
alexandrainst/da-subjectivivity-classification-base
da-subjectivivity-classification-base is a text classification model from alexandrainst. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
The BERT Tone model detects whether a text (in Danish) is subjective or objective. The model is based on the finetuning of the pretrained Danish BERT model by BotXO.
Downloads · 30 days
946
10% of all-time downloads
All-time downloads
9.2K
Public
Parameters
111M
1.3 GB on disk
Likes
2
Public
Click a slice to open those files.
.h5443 MB · 33%
How the weights are stored.
F32111M · 100%
From the Hugging Face model README
The BERT Tone model detects whether a text (in Danish) is subjective or objective. The model is based on the finetuning of 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("alexandrainst/da-subjectivivity-classification-base")
tokenizer = BertTokenizer.from_pretrained("alexandrainst/da-subjectivivity-classification-base")
The data used for training come from the Twitter Sentiment and EuroParl sentiment 2 datasets.