Skip to content

dennismeissel/en-ru-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English-Russian Translator

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)

Installation

1. Clone the Repository

git clone https://github.com/YOUR_USERNAME/english-russian-translator.git
cd english-russian-translator

2. Install Dependencies

On MacOS:

brew install cmake pkg-config
pip install -r requirements.txt

Usage

1. Command-line Arguments

python translator.py "Привет, как дела?" ru-en
python translator.py "Hello, how are you?" en-ru

2. Using Pipes

echo "Какой сегодня день?" | python translator.py ru-en
echo "What time is it?" | python translator.py en-ru

3. Interactive Mode

python translator.py
Type text and press Enter. Type `exit` to quit.

Credits

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.

License

Licensed under CC BY 4.0. See LICENSE.

About

A command-line translator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages