No project description provided
Project description
detransliterator
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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for detransliterator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d70b2cc4610bc3c4b9c0a306d46a9d4cdff9169917781edcca53b01674ad0e0 |
|
MD5 | b18035b948b971aad2d27b17df4f44f9 |
|
BLAKE2b-256 | 3102d76038c552e226047accf759981925a90cf680a6522b4556e606d5b323a9 |