Instructions to use Xenserv/NepaliSentimentAnalysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Xenserv/NepaliSentimentAnalysis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Xenserv/NepaliSentimentAnalysis")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Xenserv/NepaliSentimentAnalysis") model = AutoModelForSequenceClassification.from_pretrained("Xenserv/NepaliSentimentAnalysis") - Notebooks
- Google Colab
- Kaggle
Nepali Sentiment Analysis
This is a finetuned version of Sushant/NepaliBERT for sentiment classification. It classifies sentiment into 3 categories: Positive, Neutral and Negative.
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Xenserv/NepaliSentimentAnalysis")
model = AutoModelForSequenceClassification.from_pretrained('Xenserv/NepaliSentimentAnalysis', num_labels=3)
- Downloads last month
- -
Model tree for Xenserv/NepaliSentimentAnalysis
Base model
Shushant/nepaliBERT