Skip to content

This repository present a way to serve a English-to-Hindi machine translation model. It also presents a UI, to convert PDF documents to Hindi Language.

License

Notifications You must be signed in to change notification settings

srijan14/Document-Machine-Translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Document-Translater

This repository contains the code to convert English Digital Documents(pdf) into Hindi.

Requirements

1. Python 3.7
2. pip 19.0.3
3. OS : ubuntu18.** , ununtu16.**
  1. Installing Dependencies

    pip install -r requirements.txt
    sudo apt-get install tesseract-ocr
    sudo apt install libtesseract-dev 
    sudo apt-get install libleptonica-dev
    sudo apt-get install -y poppler-utils
    python -m textblob.download_corpora

    Please feel free to refer to tesseract installation page for any help in installation .

  2. Model Download:

    Download model from here and copy inside the ./model folder . Update the model path in src/constants.py file, if having some different model name.

  3. Start Server (will start a server on port 5001)

    python src/app.py
  4. Go to http://localhost:5001/home

     http://localhost:5001/home

  5. Example Run

    a. English - Hindi

    Input Upload(English) Hindi Output
    input doc translated doc

Note: Having too many pages in the pdf might take a bit of time for the API to return the results. On successfull processing, a text file with the converted hindi text will be generated.

Acknowlegements

  1. text-translator

Future Work

  1. Updating Web UI to allow the user to translate an image format documents, and also the functionality to allow the conversion of a particular page of pdf.
  2. Support for Other Languages.

About

This repository present a way to serve a English-to-Hindi machine translation model. It also presents a UI, to convert PDF documents to Hindi Language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published