dict-from-dragonmapper
Command-line interface (CLI) to create a pronunciation dictionary by looking up IPA transcriptions using dragonmapper including the possibility of ignoring punctuation and splitting words on hyphens before transcribing them. Instead of attaching the tones to the syllable the tones are attached to the vowel of the syllable.
Installation
pip install dict-from-dragonmapper --user
Usage
dict-from-dragonmapper-cli
Example
# Create example vocabulary
cat > /tmp/vocabulary.txt << EOF
社会语言学?
㐻,
『㑐
鲜-亮。
『占斌?
『机具-机呀?
EOF
# Create dictionary from vocabulary
dict-from-dragonmapper-cli \
/tmp/vocabulary.txt \
/tmp/result.dict \
--split-on-hyphen \
--n-jobs 4
cat /tmp/result.dict
Output:
社会语言学? ʂ ɤ˥˩ x w eɪ˥˩ y˧˩˧ j ɛ˧˥ n ɕ ɥ œ˧˥ ?
㐻, n eɪ˥˩ ,
『㑐 『 ʂ u˥
鲜-亮。 ɕ j ɛ˥ n - l j ɑ˥˩ ŋ 。
『占斌? 『 ʈʂ a˥˩ n p i˥ n ?
『机具-机呀? 『 tɕ i˥ tɕ y˥˩ - tɕ i˥ j a ?
Phoneme Set
a
ai
aɪ
eɪ
f
i
j
k
kʰ
l
m
n
oʊ
p
pʰ
s
t
ts
tsʰ
tɕ
tɕʰ
tʰ
u
w
x
y
ŋ
œ
ɑ
ɑʊ
ɔ
ɕ
ə
ɛ
ɤ
ɥ
ɨ
ɯ
ɻ
ʂ
ʈʂ
ʈʂʰ
ʊ
ʐ
Vowels and diphthongs contain one of these tones:
˥ (first tone)
˧˥ (second tone)
˧˩˧ (third tone)
˥˩ (fourth tone)
(none)
Dependencies
pronunciation-dictionary >= 0.0.4ordered-set >= 4.1.0word-to-pronunciation >= 0.0.1dragonmapper >=0.2.6, < 0.3tqdm
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 generated by GitHub (see About => Cite this repository).
Metadata
Release files for dict-from-dragonmapper 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dict-from-dragonmapper-0.0.2.tar.gz | 13.7 kB | Without provenance | Details for dict-from-dragonmapper-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dict_from_dragonmapper-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for dict_from_dragonmapper-0.0.2-py3-none-any.whl |
Total release size: 27.3 kB
Release files / dict-from-dragonmapper-0.0.2.tar.gz
| Download URL | dict-from-dragonmapper-0.0.2.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27445e48e7c8a50d652c84f20e86ba03b5accb22fb61de366853d68a13b25f4e
|
|
BLAKE2b-256 checksum How to use checksums |
24136688a126d0159b7c1492b277d0bbcbfae9a2a98012e39f5dd163712d7886
|
| 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_dragonmapper-0.0.2-py3-none-any.whl
| Download URL | dict_from_dragonmapper-0.0.2-py3-none-any.whl |
|---|---|
| Size | 13.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1aeb3b919f190b31515ff1af59d97eb0bd188ad279f6e3e025e9ad607abeb7f4
|
|
BLAKE2b-256 checksum How to use checksums |
4c57cad436676f88186d8c37e12d019848069c80c2ee3c10192e528511c8d659
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for dict-from-dragonmapper 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.