saribasmetehan commited on
Commit
7801ff1
1 Parent(s): 4487d01

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -2
README.md CHANGED
@@ -35,10 +35,15 @@ https://github.com/saribasmetehan/Transformers-Library/blob/main/Turkish_Text_Cl
35
 
36
  More information needed
37
 
38
- ## Training and evaluation data
 
39
 
40
- More information needed
 
 
 
41
 
 
42
  ## Training procedure
43
 
44
  ### Training hyperparameters
 
35
 
36
  More information needed
37
 
38
+ ## Example
39
+ from transformers import pipeline
40
 
41
+ model_id = "saribasmetehan/bert-base-turkish-sentiment-analysis"
42
+ classifer = pipeline("text-classification",model = model_id)
43
+ preds= classifer(text)
44
+ print(preds)
45
 
46
+ #[{'label': 'LABEL_2', 'score': 0.7510055303573608}]
47
  ## Training procedure
48
 
49
  ### Training hyperparameters