Skip to main content

Translate Tajik texts to Persian with the help of a seq2seq model

Project description

tg2fa_translit

A Tajik-to-Persian transliteration model. It shows a Levenshtein ratio of 0.988.

Installation

pip install tg2fa_translit

Dependency

  • numpy
  • torch

API

from tg2fa_translit import convert

tg_text = 'То ғами фардо нахӯрем!'
fa_text = convert(text)
print(fa_text)
'تا غم فردا نخوریم!'
# Depending on your setup, the resulting string can be displayed incorrectly.

Datasets and Training Details

For more details visit https://github.com/stibiumghost/tajik-persian-transliteration

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

tg2fa_translit-1.0.tar.gz (3.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tg2fa_translit-1.0-py3-none-any.whl (3.5 MB view details)

Uploaded Python 3

File details

Details for the file tg2fa_translit-1.0.tar.gz.

File metadata

  • Download URL: tg2fa_translit-1.0.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for tg2fa_translit-1.0.tar.gz
Algorithm Hash digest
SHA256 928a437abf67b5806351481b86c0c41b047bb0bab2240df07aa1e76d892af6f7
MD5 55b3e1aafcc7bfc6cda4489ca1ef85ee
BLAKE2b-256 49587cfe683c6dfc9493f3b607c6a1f352036841f8cdae055e0c98dabd54236a

See more details on using hashes here.

File details

Details for the file tg2fa_translit-1.0-py3-none-any.whl.

File metadata

  • Download URL: tg2fa_translit-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for tg2fa_translit-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e67991b19b9faf33492a12accb3b91713e83265ca5a7e2b6a0bc81ecfbdcf464
MD5 c86b51749167ccee355efebf59f2abc5
BLAKE2b-256 6a4dd115ffe897476102ec22ccdd8fa4d36f86b6f6120558fa7c994791e74313

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page