gsarti commited on
Commit
b67b127
1 Parent(s): b2f1c78

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +61 -14
README.md CHANGED
@@ -1,41 +1,88 @@
1
  ---
2
  language:
3
  - it
4
- datasets:
5
- - yahoo/xformal_it
6
  tags:
7
  - italian
 
 
8
  - formality-style-transfer
 
 
9
  widget:
10
  - text: "Questa performance è a dir poco spiacevole."
11
  - text: "In attesa di un Suo cortese riscontro, Le auguriamo un piacevole proseguimento di giornata."
12
  - text: "Questa visione mi procura una goduria indescrivibile."
13
  - text: "qualora ciò possa interessarti, ti pregherei di contattarmi."
14
- license: apache-2.0
15
  metrics:
16
  - rouge
 
17
  model-index:
18
- - name: it5-base-xformal-f2i
19
  results:
20
  - task:
21
  type: formality-style-transfer
22
- name: "Formal-to-informal style transfer"
23
  dataset:
24
  type: xformal_it
25
- name: "XFormal (it)"
26
  metrics:
27
  - type: rouge1
28
  value: 0.0
29
- name: "Test Rouge1"
30
- - type: rouge1
31
  value: 0.0
32
- name: "Test Rouge2"
33
- - type: rouge1
34
  value: 0.0
35
- name: "Test RougeL"
36
- - type: rouge1
37
  value: 0.0
38
- name: "Test RougeLSum"
 
 
 
 
 
 
 
39
  ---
40
 
41
- # Italian T5 for Formal-to-informal Style Transfer 🤗
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  language:
3
  - it
4
+ license: apache-2.0
 
5
  tags:
6
  - italian
7
+ - sequence-to-sequence
8
+ - style-transfer
9
  - formality-style-transfer
10
+ datasets:
11
+ - yahoo/xformal_it
12
  widget:
13
  - text: "Questa performance è a dir poco spiacevole."
14
  - text: "In attesa di un Suo cortese riscontro, Le auguriamo un piacevole proseguimento di giornata."
15
  - text: "Questa visione mi procura una goduria indescrivibile."
16
  - text: "qualora ciò possa interessarti, ti pregherei di contattarmi."
 
17
  metrics:
18
  - rouge
19
+ - bertscore
20
  model-index:
21
+ - name: it5-base-formal-to-informal
22
  results:
23
  - task:
24
  type: formality-style-transfer
25
+ name: "Formal-to-informal Style Transfer"
26
  dataset:
27
  type: xformal_it
28
+ name: "XFORMAL (Italian Subset)"
29
  metrics:
30
  - type: rouge1
31
  value: 0.0
32
+ name: "Avg. Test Rouge1"
33
+ - type: rouge2
34
  value: 0.0
35
+ name: "Avg. Test Rouge2"
36
+ - type: rougeL
37
  value: 0.0
38
+ name: "Avg. Test RougeL"
39
+ - type: bertscore
40
  value: 0.0
41
+ name: "Avg. Test BERTScore"
42
+ args:
43
+ co2_eq_emissions:
44
+ emissions: "17g"
45
+ source: "Google Cloud Platform Carbon Footprint"
46
+ training_type: "fine-tuning"
47
+ geographical_location: "Eemshaven, Netherlands, Europe"
48
+ hardware_used: "1 TPU v3-8 VM"
49
  ---
50
 
51
+ # IT5 Base for Formal-to-informal Style Transfer 🤗
52
+
53
+ This repository contains the checkpoint for the [IT5 Base](https://huggingface.co/gsarti/it5-base) model fine-tuned on Formal-to-informal style transfer on the Italian subset of the XFORMAL dataset as part of the experiments of the paper [IT5: Large-scale Text-to-text Pretraining for Italian Language Understanding and Generation](https://arxiv.org) by Gabriele Sarti and Malvina Nissim.
54
+
55
+ A comprehensive overview of other released materials is provided in the [gsarti/it5](https://github.com/gsarti/it5) repository. Refer to the paper for additional details concerning the reported scores and the evaluation approach.
56
+
57
+ ## Using the model
58
+
59
+ Model checkpoints are available for usage in Tensorflow, Pytorch and JAX. They can be used directly with pipelines as:
60
+
61
+ ```python
62
+ from transformers import pipelines
63
+
64
+ f2i = pipeline("text2text-generation", model='it5/it5-base-formal-to-informal')
65
+ f2i("Vi ringrazio infinitamente per vostra disponibilità")
66
+ >>> [{"generated_text": "e grazie per la vostra disponibilità!"}]
67
+ ```
68
+
69
+ or loaded using autoclasses:
70
+
71
+ ```python
72
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
73
+
74
+ tokenizer = AutoTokenizer.from_pretrained("it5/it5-base-formal-to-informal")
75
+ model = AutoModelForSeq2SeqLM.from_pretrained("it5/it5-base-formal-to-informal")
76
+ ```
77
+
78
+ If you use this model in your research, please cite our work as:
79
+
80
+ ```bibtex
81
+ @article{sarti-nissim-2022-it5,
82
+ title={IT5: Large-scale Text-to-text Pretraining for Italian Language Understanding and Generation},
83
+ author={Sarti, Gabriele and Nissim, Malvina},
84
+ journal={ArXiv preprint TBD},
85
+ url={TBD},
86
+ year={2022}
87
+ }
88
+ ```