Skip to main content

No project description provided

Project description

detransliterator

Build PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install detransliterator

Usage

as a software library

from detransliterator import Detransliterator

detransliterator = Detransliterator('latin2nqo_001.35')
latin = "musa dunbuya"
nqo = detransliterator.detransliterate(latin, beam_size=5)
assert nqo == "ߡߎߛߊ߫ ߘߎ߲ߓߎߦߊ"

as a console tool

python -m detransliterator.tool --help

example: detransliterate a stream

echo "musa dunbuya" | python -m detransliterator.tool

example: detransliterate a csv file

cat file.latin                     \
    | python -m detransliterator.tool    \
        --csv-separator \t        \
        --csv-column 1            \
        --csv-target-column-name  \
    > file.nqo

example: use a particular GPU

CUDA_VISIBLE_DEVICES="1" echo "musa dunbuya" | python -m detransliterator.tool

License

detransliterator is distributed under the terms of the MIT license.

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

detransliterator-0.0.1.tar.gz (59.0 MB view hashes)

Uploaded Source

Built Distribution

detransliterator-0.0.1-py3-none-any.whl (59.1 MB view hashes)

Uploaded Python 3

Supported by

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