State of the art translation for Indic languages.
Project description
Anuvaad
State of the art translation models for Indic languages.
Installation
# CPU pytorch will be installed if torch is not installed
pip install --upgrade anuvaad
Usage
from anuvaad import Anuvaad
anu = Anuvaad("english-telugu")
# Single sentence translation
# beam_size is optional and defaults to 4
anu.anuvaad("YS Jagan is the chief minister of Andhra Pradesh.")
# "వైఎస్ జగన్ ఆంధ్రప్రదేశ్ ముఖ్యమంత్రి."
# Batch translation
anu.anuvaad(["YS Jagan is the chief minister of Andhra Pradesh.",
"Nara Lokesh suffered a humuliating defeat in Mangalagiri."])
# ['వైఎస్ జగన్ ఆంధ్రప్రదేశ్ ముఖ్యమంత్రి.', 'మంగళగిరిలో నారా లోకేష్కు ఘోర పరాజయం ఎదురైంది.']
Available Models |
---|
english-telugu |
english-tamil |
english-malayalam |
english-kannada |
english-marathi |
english-hindi |
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
anuvaad-1.0.1.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for anuvaad-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c553d1cf5eb464ad0a2bfc258e4552829bdf01ac8b09bf98a85e886d032268ca |
|
MD5 | f5f8f7d1597da9e81eea2f1ebb365cf1 |
|
BLAKE2b-256 | b09cad8a5feae6087431412ba65dd0cc9e0521d10438ee85d18501835ef86172 |