Skip to content

English → Hindi Neural Machine Translator This project demonstrates how to build a Neural Machine Translation (NMT) system that translates English text into Hindi using PyTorch and Hugging Face Transformers.

Notifications You must be signed in to change notification settings

ankit-variya/Translator_En2Hi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python -m venv venv source venv/bin/activate # mac/linux

venv\Scripts\activate # windows

pip install -r requirements.txt

python translate.py

python translate.py -t "I love programming in Python."

make sentences.txt with one english sentence per line

python translate.py -f sentences.txt -b 16

uvicorn api:app --reload --host 0.0.0.0 --port 8000

curl -X POST "http://127.0.0.1:8000/translate" -H "Content-Type: application/json" -d '{"text":"I love open source software."}'

About

English → Hindi Neural Machine Translator This project demonstrates how to build a Neural Machine Translation (NMT) system that translates English text into Hindi using PyTorch and Hugging Face Transformers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages