--- license: mit language: - gl metrics: - bleu (Gold1): 36.8 - bleu (Gold2): 47.1 - bleu (Flores): 32.3 - bleu (Test-suite): 42.7 --- license: mit --- **Descrición do Modelo / Model Description** Modelo feito con OpenNMT para o par inglés-galego utilizando unha arquitectura transformer. **Como traducir / How to translate** + Abrir terminal bash + Instalar [Python 3.9](https://www.python.org/downloads/release/python-390/) + Instalar [Open NMT toolkit v.2.2](https://github.com/OpenNMT/OpenNMT-py) + Traducir un input_text utilizando o modelo NOS-MT-en-gl co seguinte comando: ```bash onmt_translate -src input_text -model NOS-MT-en-gl -output ./output_file.txt -replace_unk -gpu 0 ``` + O resultado da tradución estará no PATH indicado no flag -output. **Adestramento / Training** Datos utilizados para o adestramento Auténticos e Sintéticos (Transliteração)[Colocar Paper] **Procedemento de adestramento / Training process** + Tokenization dos datasets feita co tokenizador de linguakit https://github.com/citiususc/Linguakit + O vocabulario para os modelos foi xerado a través do script [learn_bpe.py](https://github.com/OpenNMT/OpenNMT-py/blob/master/tools/learn_bpe.py) da open NMT + Usando o .yaml neste repositorio pode replicar o proceso de adestramento do seguinte xeito ```bash onmt_build_vocab -config bpe-en-gl_emb.yaml -n_sample 100000 onmt_train -config bpe-en-gl_emb.yaml ``` **Hiperparámetros / Hyper-parameters** Os parámetros usados para o desenvolvimento do modelo poden ser consultados directamente no mesmo ficheiro .yaml bpe-en-gl_emb.yaml **Avaliación / Evaluation** A avalación dos modelos é feita cunha mistura de tests desenvolvidos internamente (gold1, gold2, test-suite) con outros datasets disponíbeis en galego (Flores). | GOLD 1 | GOLD 2 | FLORES | TEST-SUITE| | ------------- |:-------------:| -------:|----------:| | 36.8 | 47.1 | 32.3 | 42.7 | **Licenzas do Modelo / Licensing information** MIT License Copyright (c) 2023 Proxecto Nós Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **Financiamento / Funding** Esta investigación foi financiada polo proxecto "Nós: o galego na sociedade e economía da intelixencia artificial", resultado dun acordo entre a Xunta de Galicia e a Universidade de Santiago de Compostela, o que resultou no subsidio ED431G2019/04 da Consellaría de Educación, Universidade e Formación Profesional da Galiza, e polo Fondo Europeo de Desenvolvemento Rexional (programa ERDF/FEDER), e Grupos de Referencia: ED431C 2020/21. 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. **Citation Information**