|
Download README.md from ketir/Emotion-Detection-BiLSTM: direct link, hf CLI and curl.
- Browser
- Download file 971 Bytes
-
https://huggingface.co/ketir/Emotion-Detection-BiLSTM/resolve/main/README.md
- Command line
-
hf download hf://ketir/Emotion-Detection-BiLSTM/README.md
-
curl -L -o README.md https://huggingface.co/ketir/Emotion-Detection-BiLSTM/resolve/main/README.md
971 Bytes
| license: apache-2.0 | |
| --- | |
| license: apache-2.0 | |
| tags: | |
| - text-classification | |
| - emotion-classification | |
| - indonesian | |
| - bilstm | |
| - tensorflow | |
| language: | |
| - id | |
| pipeline_tag: text-classification | |
| widget: | |
| - text: "Saya sangat bahagia hari ini!" | |
| - text: "Aku merasa sedih sekali" | |
| - text: "Mengapa ini terjadi? Aku marah!" | |
| --- | |
| # Indonesian Emotion Classification with BiLSTM | |
| ## Model Description | |
| This model is a Bidirectional LSTM (BiLSTM) trained for emotion classification on Indonesian text. The model can predict 6 different emotions from text input. | |
| ## Supported Emotions | |
| - `angry` - Marah | |
| - `fear` - Takut | |
| - `happy` - Bahagia | |
| - `love` - Cinta | |
| - `sad` - Sedih | |
| ## Usage | |
| ```python | |
| from transformers import pipeline | |
| # Load the model | |
| classifier = pipeline("text-classification", | |
| model="your-username/your-model-name", | |
| return_all_scores=True) | |
| # Predict emotion | |
| result = classifier("Saya sangat bahagia hari ini!") | |
| print(result) |