Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

looking for code to convert from pinyin to x-sampa #1

Open
georgid opened this issue Sep 19, 2017 · 2 comments
Open

looking for code to convert from pinyin to x-sampa #1

georgid opened this issue Sep 19, 2017 · 2 comments

Comments

@georgid
Copy link

georgid commented Sep 19, 2017

A question:
I would like to reuse your code for expansion from a syllable in pinyin to the labels of the classes of the CNN model (based on x-sampa).

I saw that code for creating a transition matrix is essentially what I need, right?

I dont see though why you have only a list of the syllable finas expanded to x-sampa? What happends to the initials? Are they omitted because they are too short or s.th.?

@ronggong
Copy link
Owner

https://github.com/ronggong/jingjuSingingPhraseMatching/blob/master/general/pinyinMap.py

here you have dictionaries:
dic_pinyin_2_initial_final_map: convert pinyin to initial and final
dic_initial_2_sampa: convert initial to sampa
dic_final_2_sampa: convert final to sampa

when you have sampa, you can use dic_pho_map in https://github.com/ronggong/jingjuSingingPhraseMatching/blob/master/general/phonemeMap.py
to convert sampa to the acoustic model notations.

@ronggong
Copy link
Owner

In the matching, I haven't used the initials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants