Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,65 @@
|
|
1 |
---
|
2 |
license: cc-by-4.0
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: cc-by-4.0
|
3 |
+
language:
|
4 |
+
- he
|
5 |
+
datasets:
|
6 |
+
- HebArabNlpProject/HebrewSentiment
|
7 |
---
|
8 |
+
# DictaBERT: A State-of-the-Art BERT Suite for Modern Hebrew
|
9 |
+
|
10 |
+
State-of-the-art language model for Hebrew, released [to fill in].
|
11 |
+
|
12 |
+
This is the fine-tuned BERT-base model for the sentiment-analysis task on the [HebrewSetniment dataset](https://huggingface.co/datasets/HebArabNlpProject/HebrewSentiment) release by the Israeli National Program for Hebrew and Arabic NLP.
|
13 |
+
|
14 |
+
For the bert-base models for other tasks, see [here](https://huggingface.co/collections/dicta-il/dictabert-6588e7cc08f83845fc42a18b).
|
15 |
+
|
16 |
+
Sample usage:
|
17 |
+
|
18 |
+
```python
|
19 |
+
from transformers import pipeline
|
20 |
+
|
21 |
+
oracle = pipeline('sentiment-analysis', model='dicta-il/dictabert-sentiment')
|
22 |
+
|
23 |
+
sentence = '''ืื ื ืืืื ืฉืื ืฉืืืืื ืืื ืืฉืืืจืจ ืืฉืืืืฉ ืืืคืฉื'''
|
24 |
+
oracle(sentence)
|
25 |
+
```
|
26 |
+
|
27 |
+
Output:
|
28 |
+
```json
|
29 |
+
[
|
30 |
+
{
|
31 |
+
"label": "Positive",
|
32 |
+
"score": 0.9999868869781494
|
33 |
+
}
|
34 |
+
]
|
35 |
+
```
|
36 |
+
|
37 |
+
## Citation
|
38 |
+
|
39 |
+
If you use DictaBERT in your research, please cite ```DictaBERT: A State-of-the-Art BERT Suite for Modern Hebrew```
|
40 |
+
|
41 |
+
**BibTeX:**
|
42 |
+
|
43 |
+
```bibtex
|
44 |
+
@misc{shmidman2023dictabert,
|
45 |
+
title={DictaBERT: A State-of-the-Art BERT Suite for Modern Hebrew},
|
46 |
+
author={Shaltiel Shmidman and Avi Shmidman and Moshe Koppel},
|
47 |
+
year={2023},
|
48 |
+
eprint={2308.16687},
|
49 |
+
archivePrefix={arXiv},
|
50 |
+
primaryClass={cs.CL}
|
51 |
+
}
|
52 |
+
```
|
53 |
+
|
54 |
+
## License
|
55 |
+
|
56 |
+
Shield: [![CC BY 4.0][cc-by-shield]][cc-by]
|
57 |
+
|
58 |
+
This work is licensed under a
|
59 |
+
[Creative Commons Attribution 4.0 International License][cc-by].
|
60 |
+
|
61 |
+
[![CC BY 4.0][cc-by-image]][cc-by]
|
62 |
+
|
63 |
+
[cc-by]: http://creativecommons.org/licenses/by/4.0/
|
64 |
+
[cc-by-image]: https://i.creativecommons.org/l/by/4.0/88x31.png
|
65 |
+
[cc-by-shield]: https://img.shields.io/badge/License-CC%20BY%204.0-lightgrey.svg
|