Update README.md
Browse files
README.md
CHANGED
@@ -8,13 +8,15 @@ tags:
|
|
8 |
- formality
|
9 |
licenses:
|
10 |
- cc-by-nc-sa
|
11 |
-
license:
|
|
|
|
|
12 |
---
|
13 |
|
14 |
|
15 |
**Model Overview**
|
16 |
|
17 |
-
This is the model presented in the paper "Detecting Text Formality: A Study of Text Classification Approaches".
|
18 |
|
19 |
The original model is [mDistilBERT (base)](https://huggingface.co/distilbert-base-multilingual-cased). Then, it was fine-tuned on the multilingual corpus for fomality classiication [X-FORMAL](https://arxiv.org/abs/2104.04108) that consists of 4 languages -- English (from [GYAFC](https://arxiv.org/abs/1803.06535)), French, Italian, and Brazilian Portuguese.
|
20 |
In our experiments, the model showed the best results within Transformer-based models for the cross-lingual formality classification knowledge transfer task. More details, code and data can be found [here](https://github.com/s-nlp/formality).
|
@@ -32,9 +34,10 @@ For cross-lingual experiments results, please, refer to the paper.
|
|
32 |
| mDeBERTa-base | 87.3 | 76.6 | 75.8 | 78.9 | 79.9 |
|
33 |
|
34 |
**How to use**
|
|
|
35 |
```python
|
36 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
37 |
-
model_name = 'mdistilbert-base-formality-ranker'
|
38 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
39 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
40 |
```
|
@@ -61,9 +64,4 @@ model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
|
61 |
|
62 |
## Licensing Information
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
[![CC BY-NC-SA 4.0][cc-by-nc-sa-image]][cc-by-nc-sa]
|
67 |
-
|
68 |
-
[cc-by-nc-sa]: http://creativecommons.org/licenses/by-nc-sa/4.0/
|
69 |
-
[cc-by-nc-sa-image]: https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png
|
|
|
8 |
- formality
|
9 |
licenses:
|
10 |
- cc-by-nc-sa
|
11 |
+
license: openrail++
|
12 |
+
base_model:
|
13 |
+
- distilbert/distilbert-base-multilingual-cased
|
14 |
---
|
15 |
|
16 |
|
17 |
**Model Overview**
|
18 |
|
19 |
+
This is the model presented in the paper ["Detecting Text Formality: A Study of Text Classification Approaches"](https://aclanthology.org/2023.ranlp-1.31/).
|
20 |
|
21 |
The original model is [mDistilBERT (base)](https://huggingface.co/distilbert-base-multilingual-cased). Then, it was fine-tuned on the multilingual corpus for fomality classiication [X-FORMAL](https://arxiv.org/abs/2104.04108) that consists of 4 languages -- English (from [GYAFC](https://arxiv.org/abs/1803.06535)), French, Italian, and Brazilian Portuguese.
|
22 |
In our experiments, the model showed the best results within Transformer-based models for the cross-lingual formality classification knowledge transfer task. More details, code and data can be found [here](https://github.com/s-nlp/formality).
|
|
|
34 |
| mDeBERTa-base | 87.3 | 76.6 | 75.8 | 78.9 | 79.9 |
|
35 |
|
36 |
**How to use**
|
37 |
+
|
38 |
```python
|
39 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
40 |
+
model_name = 's-nlp/mdistilbert-base-formality-ranker'
|
41 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
42 |
model = AutoModelForSequenceClassification.from_pretrained(model_name)
|
43 |
```
|
|
|
64 |
|
65 |
## Licensing Information
|
66 |
|
67 |
+
This model is licensed under the OpenRAIL++ License, which supports the development of various technologies—both industrial and academic—that serve the public good.
|
|
|
|
|
|
|
|
|
|