Run this model with HF Jobs
Run dakkulanthu/nepali-sentiment-analysis-short on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/dakkulanthu/nepali-sentiment-analysis-short. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/dakkulanthu/nepali-sentiment-analysis-short on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use dakkulanthu/nepali-sentiment-analysis-short with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dakkulanthu/nepali-sentiment-analysis-short with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dakkulanthu/nepali-sentiment-analysis-short")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dakkulanthu/nepali-sentiment-analysis-short") model = AutoModelForSequenceClassification.from_pretrained("dakkulanthu/nepali-sentiment-analysis-short", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Pre-trained sentiment analysis model for Nepali language.
Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="dakkulanthu/nepali-sentiment-analysis-short")
Example text data
text_data = """ बोलेरै कांग्रेसको मागको दोकान बन्द गर्छु भन्नेले विशेष पत्रकार सम्मेलन गरेर बोल्नुस जनताले बुझ्छन्। कांग्रेसले संसद बन्द गरिराखोस्। तपाईले बोल्न बाकी के के रैछ हेरौ। """
Use the pipeline for sentiment analysis
sentiment_result = pipe(text_data)
sentiment_result
- Downloads last month
- 12