nyu-mll/glue
Viewer • Updated • 1.49M • 463k • 495
How to use arif481/crosslingual-sentiment-model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="arif481/crosslingual-sentiment-model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("arif481/crosslingual-sentiment-model")
model = AutoModelForSequenceClassification.from_pretrained("arif481/crosslingual-sentiment-model")A cross-lingual sentiment analysis model fine-tuned on XLM-RoBERTa for binary sentiment classification (positive/negative) across en, bn.
This model performs sentiment classification across multiple languages using transfer learning. It was trained using the combined strategy.
Trained on combined English and Bengali data for multilingual learning.
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}]
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model = AutoModelForSequenceClassification.from_pretrained("arif481/crosslingual-sentiment-model")
tokenizer = AutoTokenizer.from_pretrained("arif481/crosslingual-sentiment-model")
| Metric | Value |
|---|---|
| Accuracy | N/A |
| Macro F1 | N/A |
| Precision | N/A |
| Recall | N/A |
If you use this model, please cite:
@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}
}
This model is released under the MIT License.