orisuchy's picture
Update README.md
859d88f
|
raw
history blame
1.27 kB
---
license: afl-3.0
language: "he"
tags:
- Text Classification
widget:
- text: "היער השחור והגדול"
- text: "ואז הוא הלך לטייל בתוך היער השחור והגדול"
datasets:
- Descriptive_Sentences_He
models:
- AlephBERT
---
# Descriptive Sentences Classifier
## Hebrew Language Model
## 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.9998779296875},
{'label': 'Not Descriptive', 'score': 0.0001220278863911517}]]
"""
```
#### 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.9999438524246216}]
"""
```
<iframe src="https://wandb.ai/orisuchy/huggingface/reports/Shared-panel-22-03-01-15-03-08--VmlldzoxNjI5MjM0?highlightShare" style="border:none;height:1024px;width:100%">