You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dict-from-annotation

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dict-from-annotation

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

0.0.2
pipPyPI
Maintainers
1

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

Keywords

ARPAbet

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts