Noor0 commited on
Commit
7bd5c34
โ€ข
1 Parent(s): bbc7271

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -0
README.md CHANGED
@@ -20,6 +20,19 @@ It achieves the following results on the evaluation set:
20
  - Loss: 0.502831
21
  - Accuracy: 0.798512
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  ## Training and evaluation data
25
 
 
20
  - Loss: 0.502831
21
  - Accuracy: 0.798512
22
 
23
+ # inference with pipeline
24
+
25
+ ```
26
+ from transformers import pipeline
27
+ model_path = "Noor0/SentimentArEng"
28
+ sentiment_task = pipeline("sentiment-analysis", model=model_path, tokenizer=model_path)
29
+ sentiment_task("ุชุนุงู…ู„ ุงู„ู…ูˆุธููŠู† ูƒุงู† ุฃู‚ู„ ู…ู† ุงู„ู…ุชูˆู‚ุน")
30
+
31
+ ```
32
+
33
+ - output:
34
+ - [{'label': 'negative', 'score': 0.9905518293380737}]
35
+
36
 
37
  ## Training and evaluation data
38