A command-line translator between English and Russian, using Helsinki-NLP models.
- ru-en: Russian → English (
Helsinki-NLP/opus-mt-ru-en
) - en-ru: English → Russian (
Helsinki-NLP/opus-mt-en-ru
)
git clone https://github.com/YOUR_USERNAME/english-russian-translator.git
cd english-russian-translator
On MacOS:
brew install cmake pkg-config
pip install -r requirements.txt
python translator.py "Привет, как дела?" ru-en
python translator.py "Hello, how are you?" en-ru
echo "Какой сегодня день?" | python translator.py ru-en
echo "What time is it?" | python translator.py en-ru
python translator.py
Type text and press Enter. Type `exit` to quit.
This project uses Helsinki-NLP machine translation models:
Developed by the Language Technology Research Group at the University of Helsinki,
licensed under CC BY 4.0.
Licensed under CC BY 4.0. See LICENSE
.