Code Monkey home page Code Monkey logo

document-machine-translation's Introduction

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.

document-machine-translation's People

Contributors

srijan14 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.