DeepTranslit: Towards better transliteration for Indic languages.
telugu, kannada, tamil, malayalam, marathi, hindi are the current supported languages.
Usage
Via docker
# Start the container in background
docker run -d -p 8080:8080 notaitech/deeptranslit:hindi
# Query from python
import requests
requests.post('http://localhost:8080/sync', json={"data": ['mera naam amitab.']}).json()
As python module
pip install --upgrade deeptranslit
from deeptranslit import DeepTranslit
# hindi
transliterator = DeepTranslit('hindi')
# Single sentence prediction
transliterator.transliterate('mera naam amitab.')
# [{'pred': 'मेरा नाम अमिताब.', 'prob': 0.25336900797483103}]
# Multiple sentence prediction
transliterator.transliterate(['mera naam amitab.', 'amitab-aur-abhishek'])
#[[{'pred': 'मेरा नाम अमिताब.', 'prob': 0.25336900797483103}],
# [{'pred': 'अमिताब-और-अभिषेक', 'prob': 0.1027598988040056}]]
Notes:
- Tokens (characters) not present in input space (english alphabet) are copied over to output.
- eg: (
amitab.->अमिताब.,amitab-aur-abhishek->अमिताब-और-अभिषेक)
- eg: (
- Predictions are cached at word level. i.e: computationally,
transliterate('amitab amitab')is equivalent totransliterate('amitab')ortransliterate('amitab amitab amitab')
Metadata
Release files for deeptranslit 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| deeptranslit-1.1.1.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deeptranslit-1.1.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 21.4 kB
Release files / deeptranslit-1.1.1.tar.gz
| Download URL | deeptranslit-1.1.1.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a970f36e54a97cf9f5e517611f70299810a136396bf8336a18bb060feea1c5b7
|
|
BLAKE2b-256 checksum How to use checksums |
89e14d285a3865441b54dc113a130b79f64672dd16d7e2569d545478575342ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8
|
Release files / deeptranslit-1.1.1-py2.py3-none-any.whl
| Download URL | deeptranslit-1.1.1-py2.py3-none-any.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f79b93e4d9594f253102f9e0d2df245722af91c59109319fea7c12489f5b61ab
|
|
BLAKE2b-256 checksum How to use checksums |
2b374dc36ac22d8a0c59eb586fae8560221589549331764640fa14b0365668df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8
|