Sentiment Analysis Models
Collection
Collection of XLM-R-based Sentiment Analysis models trained on the data with two labels - positive and negative. • 25 items • Updated
How to use DGurgurov/xlm-r_urdu_sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="DGurgurov/xlm-r_urdu_sentiment") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("DGurgurov/xlm-r_urdu_sentiment")
model = AutoModelForSequenceClassification.from_pretrained("DGurgurov/xlm-r_urdu_sentiment")YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
This is a fine-tuned XLM-R model for sentiment analysis in urdu.
To use this model, you can load it with the Hugging Face Transformers library:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("DGurgurov/xlm-r_urdu_sentiment")
model = AutoModelForSequenceClassification.from_pretrained("DGurgurov/xlm-r_urdu_sentiment")
[MIT]