saribasmetehan
commited on
Update README.md
Browse files
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 |
-
##
|
|
|
39 |
|
40 |
-
|
|
|
|
|
|
|
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
|