Edit model card

nl-naxai-ai-sentiment-classification-142701122023(latest)

The model is trained on the sentiment classification task in the Dutch language.It uses 3 labels: -1, 0 and 1. These labels represent negative, neutral and positive sentiments.

This model is finetuned from robbert-v2-dutch-base. RobBERT is the state-of-the-art Dutch BERT model. It is a large pre-trained general Dutch language model that can be fine-tuned on a given dataset to perform any text classification, regression or token-tagging task.

Model Details

  • Language: nl
  • Problem type: Multi-class Classification
  • Model Architecture: RobBERT
  • Model Name: nl-naxai-ai-sentiment-classification-142701122023
  • Creation date: 14:27h 01/12/2023

Classification Report:

Model metrics

  • Accuracy: 0.88
  • Macro avg: 0.80
  • Weighted avg: 0.89
  • Support: 8594

Classification Report:

Label Precision Recall f1-Score Support
-1 0.93 0.92 0.93 4864
0 0.57 0.58 0.58 868
1 0.93 0.91 0.91 2862

Training Results

  • Validation Accuracy: 0.894
  • Macro F1 Score: 0.840
  • Micro F1 Score: 0.910
  • Weighted F1 Score: 0.908
  • Macro Precision: 0.856
  • Micro Precision: 0.910
  • Weighted Precision: 0.907
  • Macro Recall: 0.828
  • Micro Recall: 0.910
  • Weighted Recall: 0.910

How to use this model


You can use Python to access this model:

from transformers import pipeline

analyzer = pipeline(
    task='text-classification',
    model=“botdevringring/nl-naxai-ai-sentiment-classification-142701122023”,
    tokenizer="botdevringring/nl-naxai-ai-sentiment-classification-142701122023"
)
result = analyzer(
    "Deze bank is erg goed en biedt ook contactloze betaaldiensten."
)

result

[{'label': '0', 'score': 0.515792965888977}]

Or you can use cURL:

curl https://api-inference.huggingface.co/models/botdevringring/nl-naxai-ai-sentiment-classification-142701122023 \
    -X POST \
    -d '{"inputs": "Deze bank is erg goed en biedt ook contactloze betaaldiensten."}' \
    -H 'Content-Type: application/json' \
    -H "Authorization: Bearer <Your HF API token>"

Acknowledgements

Model trained by Eduardo Brigham for Naxai powered by The Ring Ring Company

Downloads last month
17
Safetensors
Model size
117M params
Tensor type
F32
·