File size: 1,031 Bytes
0d7c7d0 bdcb077 0d7c7d0 81f53a1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
---
license: afl-3.0
language: "he"
tags:
- Text Classification
widget:
- text: "היער השחור והגדול"
- text: "ואז הוא הלך לטייל בתוך היער השחור והגדול"
---
## How to Use the model:
```python
from transformers import pipeline
classifier = pipeline("text-classification",model='orisuchy/Descriptive_Classifier', return_all_scores=True)
outputs = classifier("מסווג חתיך במיוחד")
print(outputs)
"""
Output:
[[
{'label': 'Descriptive', 'score': 0.9996114373207092},
{'label': 'Might Descriptive', 'score': 7.421540794894099e-05},
{'label': 'Not Descriptive', 'score': 0.0003142959321849048}]]
"""
```
#### Or, if you want only the final class:
```python
from transformers import pipeline
classifier = pipeline("text-classification",model='orisuchy/Descriptive_Classifier')
output = classifier("הלכתי אליו הביתה וחיכיתי")
print(output)
"""
Output:
[{'label': 'Not Descriptive', 'score': 0.9998830556869507}]
"""
``` |