Datasets:
| ### | |
| ### Resources: | |
| ### - Helsinki NLP Opus resources (english - basque): https://opus.nlpl.eu/results/en&eu/corpus-result-table | |
| # TODO | |
| # English - Basque Wikinews MT Test Set | |
| # https://live.european-language-grid.eu/catalogue/corpus/19734 | |
| # 1788 parallel segments | |
| # | |
| # Not so good quality, take only best 20% ? | |
| # https://community.libretranslate.com/t/ccmatrix-quality-warning/903 | |
| ccmatrix() { | |
| cd raw | |
| wget -O ccmatrix-en-eu.tmx.gz https://object.pouta.csc.fi/OPUS-CCMatrix/v1/tmx/en-eu.tmx.gz | |
| gzip -d ccmatrix-en-eu.tmx.gz | |
| tmx-to-text convert -f ccmatrix-en-eu.tmx -s en -t eu -p ccmatrix | |
| rm -f ccmatrix-en-eu.tmx | |
| mv ccmatrix.en-eu.en ../ | |
| mv ccmatrix.en-eu.eu ../ | |
| cd .. | |
| } | |
| # | |
| opensubtitles() { | |
| cd raw | |
| wget -O opensubtitles-en-eu.tmx.gz https://object.pouta.csc.fi/OPUS-OpenSubtitles/v2018/tmx/en-eu.tmx.gz | |
| gzip -d opensubtitles-en-eu.tmx.gz | |
| tmx-to-text convert -f opensubtitles-en-eu.tmx -s en -t eu -p opensubtitles | |
| rm -f opensubtitles-en-eu.tmx | |
| mv opensubtitles.en-eu.en ../ | |
| mv opensubtitles.en-eu.eu ../ | |
| } | |
| xlent() { | |
| cd raw | |
| wget -O xlent-en-eu.tmx.gz https://object.pouta.csc.fi/OPUS-XLEnt/v1.2/tmx/en-eu.tmx.gz | |
| gzip -d xlent-en-eu.tmx.gz | |
| tmx-to-text convert -f xlent-en-eu.tmx -s en -t eu -p xlent | |
| rm -f xlent-en-eu.tmx | |
| mv xlent.en-eu.en ../ | |
| mv xlent.en-eu.eu ../ | |
| } | |
| gnome() { | |
| cd raw | |
| wget -O gnome-en-eu.tmx.gz https://object.pouta.csc.fi/OPUS-GNOME/v1/tmx/en-eu.tmx.gz | |
| gzip -d gnome-en-eu.tmx.gz | |
| tmx-to-text convert -f gnome-en-eu.tmx -s en -t eu -p gnome | |
| rm -f gnome-en-eu.tmx | |
| mv gnome.en-eu.en ../ | |
| mv gnome.en-eu.eu ../ | |
| } | |
| paco() { | |
| cd raw | |
| wget -O paco-en-eu.tgz https://hizkuntzateknologiak.elhuyar.eus/assets/files/paco-euen-corpus.tgz | |
| tar xzf paco-en-eu.tgz | |
| mv PaCo_EuEn_corpus/PaCo_corpus.en-eu.en ../paco.en-eu.en | |
| mv PaCo_EuEn_corpus/PaCo_corpus.en-eu.eu ../paco.en-eu.eu | |
| } | |
| # Wikimatrix en-eu | |
| # Europarl en-eu | |
| # Tedtalks en-eu | |
| # Tatoeba.org en-eu | |
| # Common Voice (covost2 eu-en) | |
| # Common Voice (covost2 en-eu) | |
| # Macocu.eu (macocu eu-en) | |
| # Orai Basque-English corpus | |
| rm -R -f raw | |
| mkdir raw | |
| #ccmatrix | |
| #opensubtitles | |
| #xlent | |
| #gnome | |
| paco | |