imdbo commited on
Commit
c490875
1 Parent(s): 7324647

Create README_English

Browse files
Files changed (1) hide show
  1. README_English +87 -0
README_English ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: MIT
3
+ language: gl (Galician)
4
+ ---
5
+ metrics:
6
+ - bleu (Gold1): 43.6
7
+ - bleu (Gold2): 58.3
8
+ - bleu (Flores): 39.0
9
+ - bleu (Test-suite): 48.7
10
+ ---
11
+
12
+ ---
13
+ License: MIT
14
+ ---
15
+
16
+ **Model Description**
17
+
18
+ OpenNMT model for English-Galician using a transformer architecture.
19
+
20
+ **How to translate**
21
+
22
+ + Open bash terminal
23
+ + Install [Python 3.9](https://www.python.org/downloads/release/python-390/)
24
+ + Install [Open NMT toolkit v.2.2](https://github.com/OpenNMT/OpenNMT-py)
25
+ + Translate an input_text using the NOS-MT-gl-en model with the following command:
26
+
27
+ ```bash
28
+ onmt_translate -src input_text聽-model NOS-MT-gl-en.pt -output ./output_file.txt -replace_unk -gpu 0
29
+ ```
30
+ + The result of the translation will be in the PATH indicated by the -output flag.
31
+
32
+ **Training**
33
+
34
+ In the training we have used authentic and synthetic corpora from [ProxectoN贸s](https://github.com/proxectonos/corpora). The former are corpora of translations directly produced by human translators. The latter are corpora of English-Portuguese translations, which we have converted into English-Galician by means of Portuguese-Galician translation with Opentrad/Apertium and transliteration for out-of-vocabulary words.
35
+
36
+ **Training process**
37
+
38
+ + Tokenization of the datasets made with linguakit tokeniser https://github.com/citiususc/Linguakit
39
+ + The vocabulary for the models was generated through the script [learn_bpe.py](https://github.com/OpenNMT/OpenNMT-py/blob/master/tools/learn_bpe.py) of OpenNMT
40
+ + Using .yaml in this repository you can replicate the training process as follows
41
+
42
+ ```bash
43
+ onmt_build_vocab -config bpe-gl-en_emb.yaml -n_sample 100000
44
+ onmt_train -config bpe-gl-en_emb.yaml
45
+ ```
46
+
47
+ **Hyper-parameters**
48
+
49
+ The parameters used for the development of the model can be directly consulted in the same .yaml file bpe-en-gl_emb.yaml
50
+
51
+ **Evaluation**
52
+
53
+ The BLEU evaluation of the models is made with a mixture of internally developed tests (gold1, gold2, test-suite) and other datasets available in Galician (Flores).
54
+
55
+ | GOLD 1 | GOLD 2 | FLORES | TEST-SUITE|
56
+ | ------------- |:-------------:| -------:|----------:|
57
+ | 43.6 | 58.3 | 39.0 | 48.7 |
58
+
59
+ **Licensing information**
60
+
61
+ MIT License
62
+
63
+ Copyright (c) 2023 Proxecto N贸s
64
+
65
+ Permission is hereby granted, free of charge, to any person obtaining a copy
66
+ of this software and associated documentation files (the "Software"), to deal
67
+ in the Software without restriction, including without limitation the rights
68
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
69
+ copies of the Software, and to permit persons to whom the Software is
70
+ furnished to do so, subject to the following conditions:
71
+
72
+ The above copyright notice and this permission notice shall be included in all
73
+ copies or substantial portions of the Software.
74
+
75
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
76
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
77
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
78
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
79
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
80
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
81
+ SOFTWARE.
82
+
83
+ **Funding**
84
+
85
+ This research was funded by the project "N贸s: Galician in the society and economy of artificial intelligence", agreement between Xunta de Galicia and University of Santiago de Compostela, and grant ED431G2019/04 by the Galician Ministry of Education, University and Professional Training, and the European Regional Development Fund (ERDF/FEDER program), and Groups of Reference: ED431C 2020/21.
86
+
87
+ **Citation Information**