Command-line interface (CLI) to create a pronunciation dictionary based on annotations.
Project description
dict-from-annotation
Command-line interface (CLI) to create pronunciation dictionaries based on manual annotations.
Installation
pip install dict-from-annotation --user
Usage
dict-from-annotation-cli
Example
# Create example vocabulary
cat > /tmp/vocabulary.txt << EOF
Test?
abc,
/X|MM|L/
/X|MM||L/
EOF
dict-from-annotation-cli \
/tmp/vocabulary.txt \
/tmp/dictionary.dict \
--rest-out /tmp/rest_vocabulary.txt
cat /tmp/dictionary.dict
# -------
# Output:
# -------
# /X|MM|L/ X MM L
# -------
cat /tmp/rest_vocabulary.txt
# -------
# Output:
# -------
# Test?
# abc,
# /X|MM||L/
# -------
Dependencies
iterable-serialization>=0.0.1
pronunciation_dictionary>=0.0.4
ordered_set>=4.1.0
tqdm
License
MIT License
Acknowledgments
Funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – Project-ID 416228727 – CRC 1410
Citation
If you want to cite this repo, you can use this BibTeX-entry:
@misc{tsdfa22,
author = {Taubert, Stefan},
title = {dict-from-annotation},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/stefantaubert/dict-from-annotation}}
}
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
Built Distribution
Close
Hashes for dict-from-annotation-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43f4d3bb3a1867b293a5e3fbc5f9e2a386ceca84c3a02aedda03aa243c478725 |
|
MD5 | 613a5b099fc4f86fa3b8adcc4955192c |
|
BLAKE2b-256 | bce56607883d68f87fd1533105a1fe3a70da560b09cee53088f2109ed7147840 |
Close
Hashes for dict_from_annotation-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdc27273f2a90c40608cd3191c6d71a3d18dab855da2554bd839e4f7b9f36139 |
|
MD5 | 9a32cd3871b7db9a78aa25955e15b8c7 |
|
BLAKE2b-256 | c8673723c3219aa660f8e42914b0c17ad85d5c53a2686548290e370e1a94f07a |