dict-from-dragonmapper 0.0.2

Creator: bigcodingguy24

Last updated:

Add to Cart

Description:

dictfromdragonmapper 0.0.2

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


f
i
j
k

l
m
n

p

s
t
ts
tsʰ

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.4
ordered-set >= 4.1.0
word-to-pronunciation >= 0.0.1
dragonmapper >=0.2.6, < 0.3
tqdm

License
MIT License
Acknowledgments
dragonmapper
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).

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.