Update README.md
Browse files
README.md
CHANGED
|
@@ -30,16 +30,18 @@ It achieves the following results on the evaluation set:
|
|
| 30 |
|
| 31 |
|
| 32 |
``` python
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
|
|
|
|
|
|
| 38 |
|
|
|
|
| 39 |
[{'label': 'normal', 'score': 0.8840981721878052},
|
| 40 |
{'label': 'hate', 'score': 0.519339382648468},
|
| 41 |
{'label': 'hate', 'score': 0.9630571007728577}]
|
| 42 |
-
|
| 43 |
```
|
| 44 |
|
| 45 |
## Model description
|
|
|
|
| 30 |
|
| 31 |
|
| 32 |
``` python
|
| 33 |
+
from transformers import pipeline
|
| 34 |
+
amhate_classifier = pipeline("text-classification", model="uhhlt/amharic-hate-speech")
|
| 35 |
+
amhate_classifier(["π³βοΈ π³βοΈααα
αα
α¨αα°ααα ααα α°α»ααͺ α’αα¨α΅α΅ααα΅ !!!π³βοΈ π³βοΈα’",
|
| 36 |
+
"α αα° α αα αα α¨ααα
αα
? αα‘α α αααͺ α¨ααα α«α΅ααα’ α°αα α«αα αα‘α α₯α¨αα° ααα ααα α«αα αααα α€αααα΅ α ααα΅αα α’ αα 100% α«αΈααα",
|
| 37 |
+
"α α αα΅α
α°α°α¨α α£αα³ α°αααͺ"])
|
| 38 |
+
```
|
| 39 |
+
Output
|
| 40 |
|
| 41 |
+
```
|
| 42 |
[{'label': 'normal', 'score': 0.8840981721878052},
|
| 43 |
{'label': 'hate', 'score': 0.519339382648468},
|
| 44 |
{'label': 'hate', 'score': 0.9630571007728577}]
|
|
|
|
| 45 |
```
|
| 46 |
|
| 47 |
## Model description
|