Download aligned text automatly.
- Download from github:
git clone https://github.com/Interaction-Bot/opus-nlp-downloader.git
- Go to the directory with
cd opus-nlp-downloader
- Install dependency with
pip install -r requirements.txt
Get datasets: python main.py get src tgt (optional: --max_corpus)
.
Exemple:
python main.py get en fr
Download datasets: python main.py download src tgt path (optional: --max_corpus) (optional: --max_sentences)
.
Exemple:
python main.py download en fr data/
from main import *
opus = Opus()
opus.get('en', 'ab')
opus.download('data')