Giter Club home page Giter Club logo

hinglish-converter's Introduction

Hinglish Converter

This repository contains the code for a Hinglish converter. The converter uses the spaCy library to identify nouns in English sentences. It then uses the Google Translate API to translate the English sentences to Hindi. Finally, it replaces the translated nouns with the original English nouns.

This converter is useful for translating English sentences to Hinglish in a way that is both accurate and fluent. It is especially useful for translating sentences that contain technical or specialized terms.

To use the converter, simply clone the repository and install the required dependencies:

pip install -r requirements.txt

Then, run the following command to translate an English sentence to Hinglish:

python hinglish_converter.py "English sentence to translate"

The converter will print the Hinglish translation of the sentence to the console.

Here is an example of how to use the converter:

python hinglish_converter.py "I love the new Google AI Hinglish Converter!"

Output:

मुझे नया Google AI Hinglish Converter पसंद है!

The converter can also be used to translate multiple English sentences to Hinglish at once. Simply pass a list of English sentences to the converter. The converter will return a list of Hinglish translations.

Here is an example of how to translate multiple English sentences to Hinglish:

python hinglish_converter.py ["English sentence 1 to translate", "English sentence 2 to translate"]

Output:

["Hinglish translation of sentence 1", "Hinglish translation of sentence 2"]

Additional notes:

  • The converter is still under development, so there may be some errors in the translations.
  • The converter uses the Google Translate API, which is a third-party service. The API may not be available at all times.
  • The converter is licensed under the MIT License.

hinglish-converter's People

Contributors

soumya-kushwaha 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.