Transformers
discourse
tchewik commited on
Commit
8c3ea78
·
verified ·
1 Parent(s): dfc9cb1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -11
README.md CHANGED
@@ -2,7 +2,16 @@
2
  license: mit
3
  language:
4
  - en
 
 
 
 
 
 
 
5
  - ru
 
 
6
  library_name: transformers
7
  ---
8
 
@@ -12,20 +21,37 @@ library_name: transformers
12
 
13
  This repository hosts several versions of the IsaNLP RST Parser. For more details, visit the [GitHub repository](https://github.com/tchewik/isanlp_rst).
14
 
 
 
15
  ## Performance
16
 
17
  The following table summarizes the end-to-end performance metrics of different model versions across various corpora:
18
 
19
- ### Corpora
20
- - **English:** GUM<sub>9.1</sub>, RST-DT
21
- - **Russian:** RRT<sub>2.1</sub>, RRG<sub>GUM-9.1</sub>
22
 
23
- | Tag | Language | Train Data | Test Data | Seg | S | N | R | Full |
24
- |--------------|------------|-------------|-------------|------|------|------|------|-------|
25
- | `gumrrg` | En, Ru | GUM, RRG | GUM | 95.5 | 67.4 | 56.2 | 49.6 | 48.7 |
26
- | | | | RRG | 97.0 | 67.1 | 54.6 | 46.5 | 45.4 |
27
- | `rstdt` | En | RST-DT | RST-DT | 97.8 | 75.6 | 65.0 | 55.6 | 53.9 |
28
- | `rstreebank` | Ru | RRT | RRT | 92.1 | 66.2 | 53.1 | 46.1 | 46.2 |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  ## Usage
31
 
@@ -70,6 +96,15 @@ To use the IsaNLP RST Parser with Hugging Face, follow these steps:
70
  vars(res['rst'])
71
  ```
72
 
 
 
 
 
 
 
 
 
 
73
  3. **Understanding the Output:**
74
 
75
  ```python
@@ -81,7 +116,7 @@ To use the IsaNLP RST Parser with Hugging Face, follow these steps:
81
  'nuclearity': 'NS',
82
  'start': 0,
83
  'end': 336,
84
- 'text': "On Saturday, ... took two wickets .",
85
  }
86
  ```
87
 
@@ -124,4 +159,4 @@ If you use the IsaNLP RST Parser in your research, please cite our work as follo
124
  url = "https://aclanthology.org/2024.findings-acl.577",
125
  pages = "9689--9706"
126
  }
127
- ```
 
2
  license: mit
3
  language:
4
  - en
5
+ - cs
6
+ - de
7
+ - eu
8
+ - fa
9
+ - fr
10
+ - nl
11
+ - pt
12
  - ru
13
+ - es
14
+ - zh
15
  library_name: transformers
16
  ---
17
 
 
21
 
22
  This repository hosts several versions of the IsaNLP RST Parser. For more details, visit the [GitHub repository](https://github.com/tchewik/isanlp_rst).
23
 
24
+ Supported languages (all): English (eng), Czech (ces), German (deu), Basque (eus), Persian (fas), French (fra), Dutch (nld), Brazilian Portuguese (por), Russian (rus), Spanish (spa), and Chinese (zho).
25
+
26
  ## Performance
27
 
28
  The following table summarizes the end-to-end performance metrics of different model versions across various corpora:
29
 
 
 
 
30
 
31
+ | Tag / Branch | Languages | Train Data | Test Data | Seg | S | N | R | Full |
32
+ |-------------- |------------ |---------------------|-----------------|------|------|------|------|-------|
33
+ | `rstdt` | eng | eng.rst.rstdt | eng.rst.rstdt | 97.8 | 75.6 | 65.0 | 55.6 | 53.9 |
34
+ | `gumrrg` | eng, rus | eng.erst.gum, rus.rst.rrg | eng.erst.gum | 95.5 | 67.4 | 56.2 | 49.6 | 48.7 |
35
+ | | | | rus.rst.rrg | 97.0 | 67.1 | 54.6 | 46.5 | 45.4 |
36
+ | `rstreebank` | rus | rus.rrt | rus.rst.rrt | 92.1 | 66.2 | 53.1 | 46.1 | 46.2 |
37
+ | `unirst` | all | all | ces.rst.crdt | 94.5 | 59.1 | 41.2 | 28.6 | 28.0 |
38
+ | | | | deu.rst.pcc | 96.5 | 67.3 | 47.4 | 34.1 | 32.1 |
39
+ | | | | eng.erst.gum | 95.3 | 67.3 | 55.6 | 48.5 | 47.4 |
40
+ | | | | eng.rst.oll | 92.5 | 55.7 | 39.0 | 27.5 | 26.3 |
41
+ | | | | eng.rst.rstdt | 98.1 | 76.7 | 65.5 | 55.2 | 53.6 |
42
+ | | | | eng.rst.sts | 91.2 | 43.3 | 31.3 | 19.4 | 18.7 |
43
+ | | | | eng.rst.umuc | 88.8 | 52.6 | 40.6 | 26.2 | 25.8 |
44
+ | | | | eus.rst.ert | 92.5 | 66.0 | 50.3 | 34.9 | 34.7 |
45
+ | | | | fas.rst.prstc | 94.7 | 63.0 | 50.2 | 40.8 | 40.7 |
46
+ | | | | fra.sdrt.annodis | 91.3 | 58.6 | 48.9 | 30.6 | 30.3 |
47
+ | | | | nld.rst.nldt | 98.0 | 61.8 | 49.8 | 36.8 | 35.8 |
48
+ | | | | por.rst.cstn | 93.9 | 68.4 | 52.8 | 44.9 | 44.5 |
49
+ | | | | rus.rst.rrg | 96.4 | 67.4 | 54.0 | 46.3 | 45.1 |
50
+ | | | | rus.rst.rrt | 90.7 | 63.0 | 49.0 | 42.3 | 42.2 |
51
+ | | | | spa.rst.rststb | 93.4 | 63.5 | 50.3 | 36.0 | 36.0 |
52
+ | | | | spa.rst.sctb | 85.5 | 55.1 | 46.8 | 39.1 | 39.1 |
53
+ | | | | zho.rst.gcdt | 93.0 | 64.5 | 50.7 | 45.9 | 44.6 |
54
+ | | | | zho.rst.sctb | 95.4 | 67.5 | 51.5 | 39.9 | 39.9 |
55
 
56
  ## Usage
57
 
 
96
  vars(res['rst'])
97
  ```
98
 
99
+ To use the multilingual UniRST model, you can specify the required relation inventory with `relinventory='lang.code.dataset'`, as listed in the performance table. The default inventory for UniRST is `eng.rst.rstdt`.
100
+
101
+ ```python
102
+ parser = Parser(hf_model_name='tchewik/isanlp_rst_v3',
103
+ hf_model_version='unirst',
104
+ cuda_device=0,
105
+ relinventory='eng.erst.gum')
106
+ ```
107
+
108
  3. **Understanding the Output:**
109
 
110
  ```python
 
116
  'nuclearity': 'NS',
117
  'start': 0,
118
  'end': 336,
119
+ 'text': "On Saturday, ... took two wickets.",
120
  }
121
  ```
122
 
 
159
  url = "https://aclanthology.org/2024.findings-acl.577",
160
  pages = "9689--9706"
161
  }
162
+ ```