Skip to main content

Command-line interface (CLI) to create a pronunciation dictionary based on annotations.

Project description

dict-from-annotation

PyPI PyPI MIT PyPI PyPI PyPI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dict-from-annotation-0.0.2.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

dict_from_annotation-0.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file dict-from-annotation-0.0.2.tar.gz.

File metadata

  • Download URL: dict-from-annotation-0.0.2.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for dict-from-annotation-0.0.2.tar.gz
Algorithm Hash digest
SHA256 43f4d3bb3a1867b293a5e3fbc5f9e2a386ceca84c3a02aedda03aa243c478725
MD5 613a5b099fc4f86fa3b8adcc4955192c
BLAKE2b-256 bce56607883d68f87fd1533105a1fe3a70da560b09cee53088f2109ed7147840

See more details on using hashes here.

File details

Details for the file dict_from_annotation-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for dict_from_annotation-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cdc27273f2a90c40608cd3191c6d71a3d18dab855da2554bd839e4f7b9f36139
MD5 9a32cd3871b7db9a78aa25955e15b8c7
BLAKE2b-256 c8673723c3219aa660f8e42914b0c17ad85d5c53a2686548290e370e1a94f07a

See more details on using hashes here.

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