GithubHelp home page GithubHelp logo

bhatt-j / english-hinglish-translations Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 44 KB

Translate English text into Hinglish, a mixture of Hindi and English.

Jupyter Notebook 100.00%
huggingface transformers nlp nltk

english-hinglish-translations's Introduction

HINGLISH-translations

English text into Hinglish, a mixture of Hindi and English, while also converting difficult words and phrases into Hinglish. Used Helsinki-NLP/opus-mt-en-hi pre-trained translation model for translations.

Installations

  • pip install transformers
  • pip install nltk
  • Python 3.n

Steps to run

  1. Clone this repository or the HINGLISH Translation.ipynb file.
  2. Complete the installations
  3. Run all the cells one by one or Run All.
  4. Enter the English sentence that you want to translated when input prompt appears.
  5. Lastly, translation will be displayed.

Overview

  • The script starts by tokenizing the English text and identifying nouns using the nltk library.
  • It then translates these nouns and the input text is translated using the Helsinki-NLP translation model.
  • Next, the Hindi text is further converted to a more readable Hinglish version using a combination of consonant and vowel mappings.
  • The script performs a noun-switching step to replace the translated nouns with their original English counterparts.

Note

  • Please note that automatic translation can sometimes yield results that might not be perfect.
  • The choice of translations and conversion rules can be improved further due to linguistic complexities.

English to Hindi Translations Built a basic Translation of English to hindi using MBart model. Model also helps to translate english to 49 different langauges.

english-hinglish-translations's People

Contributors

bhatt-j avatar

Watchers

 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.