dakkulanthu
commited on
Update README.md
Browse files
README.md
CHANGED
@@ -14,4 +14,20 @@ widget:
|
|
14 |
- label: POSITIVE
|
15 |
score: 0.8
|
16 |
---
|
17 |
-
Pre-trained sentiment analysis model for Nepali language.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
- label: POSITIVE
|
15 |
score: 0.8
|
16 |
---
|
17 |
+
Pre-trained sentiment analysis model for Nepali language.
|
18 |
+
|
19 |
+
# Use a pipeline as a high-level helper
|
20 |
+
from transformers import pipeline
|
21 |
+
|
22 |
+
pipe = pipeline("text-classification", model="dakkulanthu/nepali-sentiment-analysis-short")
|
23 |
+
|
24 |
+
# Example text data
|
25 |
+
text_data = """
|
26 |
+
बोलेरै कांग्रेसको मागको दोकान बन्द गर्छु भन्नेले विशेष पत्रकार सम्मेलन गरेर बोल्नुस जनताले बुझ्छन्। कांग्रेसले संसद बन्द गरिराखोस्। तपाईले बोल्न बाकी के के रैछ हेरौ।
|
27 |
+
"""
|
28 |
+
|
29 |
+
# Use the pipeline for sentiment analysis
|
30 |
+
sentiment_result = pipe(text_data)
|
31 |
+
|
32 |
+
sentiment_result
|
33 |
+
|