Giter Site home page Giter Site logo

narvidhai / google-transliterate-api Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 3.0 11 KB

Python library to use Google Transliterate API which powers the G Input Tools

Home Page: https://pypi.org/project/google-transliteration-api

License: MIT License

Python 100.00%
google-input-tools google-transliterate google-transliterate-api transliteration transliteration-service

google-transliterate-api's Introduction

Google Transliteration - Python API

A Python library to use Google Transliterate API which powers the G Input Tools.

Install using:

pip install google-transliteration-api

Note:

Usage

Check here for list of supported languages.

Get suggestions for a word

from google.transliteration import transliterate_word
suggestions = transliterate_word('America', lang_code='ja')
print(suggestions)

['アメリカ', '米国', '米', '亜米利加', '亜墨利加', '米利堅']

The above transliterates the word 'America' into Japanese script and returns a list of possible suggestions.

Transliterate a sentence or text

(Experimental)

from google.transliteration import transliterate_text
result = transliterate_text('Hello comrade!', lang_code='ru')
print(result)

хелло комраде!

Transliterate numerals

from google.transliteration import transliterate_numerals
result = transliterate_numerals('3210', lang_code='zh')
print(result)

三二一〇


Similar works


Please feel free to contribute by Pull Requests or raise an issue.


DMCA & Disclaimer

If you're Google and want us to take down the API, please raise an issue mentioning the main contributors.

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.