File size: 1,246 Bytes
75b7838 335f0d0 75b7838 e17d47b db0d956 02f5dce 4b48a6c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
---
language:
- ne
license: apache-2.0
library_name: transformers
metrics:
- f1
- accuracy
pipeline_tag: text-classification
widget:
- text: "हरेक दिनलाई समृद्धि र सुखको साथमा आउन सक्षम बनाउने यो सुंदर धरातल धेरै प्रेरणादायक छ। "
output:
- label: POSITIVE
score: 0.8
---
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
|