Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language: fa
|
3 |
+
license: apache-2.0
|
4 |
+
---
|
5 |
+
|
6 |
+
# ParsBERT (v2.0)
|
7 |
+
A Transformer-based Model for Persian Language Understanding
|
8 |
+
|
9 |
+
We reconstructed the vocabulary and fine-tuned the ParsBERT v1.1 on the new Persian corpora in order to provide some functionalities for using ParsBERT in other scopes!
|
10 |
+
Please follow the [ParsBERT](https://github.com/hooshvare/parsbert) repo for the latest information about previous and current models.
|
11 |
+
|
12 |
+
|
13 |
+
## Persian Sentiment [Digikala, SnappFood, DeepSentiPers]
|
14 |
+
|
15 |
+
It aims to classify text, such as comments, based on their emotional bias. We tested three well-known datasets for this task: `Digikala` user comments, `SnappFood` user comments, and `DeepSentiPers` in two binary-form and multi-form types.
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
### Digikala
|
20 |
+
|
21 |
+
Digikala user comments provided by [Open Data Mining Program (ODMP)](https://www.digikala.com/opendata/). This dataset contains 62,321 user comments with three labels:
|
22 |
+
|
23 |
+
| Label | # |
|
24 |
+
|:---------------:|:------:|
|
25 |
+
| no_idea | 10394 |
|
26 |
+
| not_recommended | 15885 |
|
27 |
+
| recommended | 36042 |
|
28 |
+
|
29 |
+
|
30 |
+
**Download**
|
31 |
+
You can download the dataset from [here](https://www.digikala.com/opendata/)
|
32 |
+
|
33 |
+
## Results
|
34 |
+
|
35 |
+
The following table summarizes the F1 score obtained by ParsBERT as compared to other models and architectures.
|
36 |
+
|
37 |
+
| Dataset | ParsBERT v2 | ParsBERT v1 | mBERT | DeepSentiPers |
|
38 |
+
|:------------------------:|:-----------:|:-----------:|:-----:|:-------------:|
|
39 |
+
| Digikala User Comments | 81.72 | 81.74* | 80.74 | - |
|
40 |
+
|
41 |
+
|
42 |
+
## How to use :hugs:
|
43 |
+
|
44 |
+
| Task | Notebook |
|
45 |
+
|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
46 |
+
| Sentiment Analysis | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/hooshvare/parsbert/blob/master/notebooks/Taaghche_Sentiment_Analysis.ipynb) |
|
47 |
+
|
48 |
+
|
49 |
+
### BibTeX entry and citation info
|
50 |
+
|
51 |
+
Please cite in publications as the following:
|
52 |
+
|
53 |
+
```bibtex
|
54 |
+
@article{ParsBERT,
|
55 |
+
title={ParsBERT: Transformer-based Model for Persian Language Understanding},
|
56 |
+
author={Mehrdad Farahani, Mohammad Gharachorloo, Marzieh Farahani, Mohammad Manthouri},
|
57 |
+
journal={ArXiv},
|
58 |
+
year={2020},
|
59 |
+
volume={abs/2005.12515}
|
60 |
+
}
|
61 |
+
```
|
62 |
+
|
63 |
+
## Questions?
|
64 |
+
Post a Github issue on the [ParsBERT Issues](https://github.com/hooshvare/parsbert/issues) repo.
|