seyyaw commited on
Commit
1bcbf9b
β€’
1 Parent(s): 813bb2e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +16 -0
README.md CHANGED
@@ -26,6 +26,22 @@ It achieves the following results on the evaluation set:
26
  - Recall: 0.7149
27
  - F1: 0.7180
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  ## Model description
30
 
31
  More information needed
 
26
  - Recall: 0.7149
27
  - F1: 0.7180
28
 
29
+ ## How to use it
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
+ [{'label': 'normal', 'score': 0.8840981721878052},
40
+ {'label': 'hate', 'score': 0.519339382648468},
41
+ {'label': 'hate', 'score': 0.9630571007728577}]
42
+
43
+ ```
44
+
45
  ## Model description
46
 
47
  More information needed