Skip to main content

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}}
}

Release files for dict-from-annotation 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dict-from-annotation 0.0.2
File Size Uploaded
dict-from-annotation-0.0.2.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dict-from-annotation 0.0.2
File Interpreter ABI Platform
dict_from_annotation-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.0 kB

Release files / dict-from-annotation-0.0.2.tar.gz

Download URL dict-from-annotation-0.0.2.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
43f4d3bb3a1867b293a5e3fbc5f9e2a386ceca84c3a02aedda03aa243c478725
BLAKE2b-256 checksum
How to use checksums
bce56607883d68f87fd1533105a1fe3a70da560b09cee53088f2109ed7147840
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / dict_from_annotation-0.0.2-py3-none-any.whl

Download URL dict_from_annotation-0.0.2-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cdc27273f2a90c40608cd3191c6d71a3d18dab855da2554bd839e4f7b9f36139
BLAKE2b-256 checksum
How to use checksums
c8673723c3219aa660f8e42914b0c17ad85d5c53a2686548290e370e1a94f07a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page