File size: 1,596 Bytes
0d7c7d0
 
bdcb077
 
 
 
 
 
859d88f
8dfaf8a
 
5d8fe1a
83b925c
 
0d7c7d0
94635db
 
 
859d88f
83b925c
 
 
 
81f53a1
 
 
 
 
 
 
 
 
 
546c6a8
 
81f53a1
 
 
 
 
 
 
 
 
 
 
c5d6fea
81f53a1
8d43a32
94635db
f1eb001
0db293d
8d43a32
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---

license: afl-3.0
language: "he"
tags:
- Text Classification
widget:
- text: "היער השחור והגדול"
- text: "ואז הוא הלך לטייל בתוך היער השחור והגדול"
datasets:
- orisuchy/Descriptive_Sentences_He
metrics:
- accuracy
- f1

---

# **Descriptive Sentences Classifier**

Based on [AlephBERT](https://huggingface.co/onlplab/alephbert-base) model.

# **Metrics**
[accuracy](https://huggingface.co/metrics/accuracy): 0.813953488372093
</br>
[f1](https://huggingface.co/metrics/f1): 0.8181818181818182
## 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.999764621257782},

{'label': 'Not Descriptive', 'score': 0.00023541577684227377}]]

"""

```
#### 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.999901533126831}]

"""

```
Created by Daniel Smotritsky & Ori Suchy
<br>
[GitHub](https://github.com/orisuchy/miniProject_DHU)
<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%">