CoolFace
Modelpublic

arif481/crosslingual-sentiment-model

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes9downloads
Model Card

arif481/crosslingual-sentiment-model

A cross-lingual sentiment analysis model fine-tuned on XLM-RoBERTa for binary sentiment classification (positive/negative) across en, bn.

Model Description

This model performs sentiment classification across multiple languages using transfer learning. It was trained using the combined strategy.

Supported Languages

  • —English (en)
  • —Bengali (bn)

Training Mode: combined

Trained on combined English and Bengali data for multilingual learning.

Usage

python
from transformers import pipeline

classifier = pipeline("sentiment-analysis", model="arif481/crosslingual-sentiment-model")

# English
result = classifier("This movie is absolutely fantastic!")
print(result)  # [{'label': 'positive', 'score': 0.99}]

# Bengali
result = classifier("এই সিনেমাটি অসাধারণ ছিল!")
print(result)  # [{'label': 'positive', 'score': 0.95}]

Training

python
from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("arif481/crosslingual-sentiment-model")
tokenizer = AutoTokenizer.from_pretrained("arif481/crosslingual-sentiment-model")

Metrics

MetricValue
AccuracyN/A
Macro F1N/A
PrecisionN/A
RecallN/A

Limitations

  • —Binary classification only (positive/negative)
  • —May not perform well on neutral sentiment
  • —Bengali performance may be lower than English due to limited training data

Citation

If you use this model, please cite:

bibtex
@misc{crosslingual-sentiment,
  author = {Cross-Lingual Sentiment Team},
  title = {Cross-Lingual Sentiment Analysis Model},
  year = {2024},
  publisher = {Hugging Face},
  url = {https://huggingface.co/arif481/crosslingual-sentiment-model}
}

License

This model is released under the MIT License.