aisyahhrazak
commited on
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- ms
|
4 |
+
---
|
5 |
+
|
6 |
+
## SiEBERT - Malay-Language Sentiment Classification
|
7 |
+
|
8 |
+
# Overview
|
9 |
+
This model is a fine-tuned checkpoint of [Deberta-V3-xsmall](https://huggingface.co/microsoft/deberta-v3-xsmall). It enables binary sentiment analysis for Malay-language text. For each instance, it predicts either positive (1) or negative (0) sentiment.
|
10 |
+
|
11 |
+
|
12 |
+
|
13 |
+
# Use in a Hugging Face pipeline
|
14 |
+
The easiest way to use the model for single predictions is Hugging Face's [sentiment analysis pipeline](https://huggingface.co/transformers/quicktour.html#getting-started-on-a-task-with-a-pipeline), which only needs a couple lines of code as shown in the following example:
|
15 |
+
```
|
16 |
+
from transformers import pipeline
|
17 |
+
sentiment_analysis = pipeline("sentiment-analysis",model="malaysia-ai/deberta-v3-xsmall-malay-sentiment")
|
18 |
+
print(sentiment_analysis("saya comel"))
|
19 |
+
```
|
20 |
+
|
21 |
+
|
22 |
+
|