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

TypeError: get_pinyin() got an unexpected keyword argument 'show_tone_marks' #3

Open
wujsy opened this issue Jul 11, 2019 · 1 comment

Comments

@wujsy
Copy link

wujsy commented Jul 11, 2019

Hi, I have fallowed your steps and loaded the Lecture record Chinese dataset, but encounted errors as fallows:
Traceback (most recent call last):
File "train.py", line 31, in
g = Graph();
File "/data/workspace/tts/happyball/tacotron/graph.py", line 30, in init
self.x, self.y, self.z, self.fnames, self.num_batch = get_batch()
File "/data/workspace/tts/happyball/tacotron/data_load.py", line 346, in get_batch
fpaths, text_lengths, texts = load_data() # list
File "/data/workspace/tts/happyball/tacotron/data_load.py", line 204, in load_data
text = to_bopomofo(text, tones=False)
File "/usr/local/lib/python2.7/dist-packages/bopomofo/init.py", line 24, in to_bopomofo
return splitter.join(_bopomofo_list(chars, tones, first_tone_symbol))
File "/usr/local/lib/python2.7/dist-packages/bopomofo/init.py", line 44, in _bopomofo_list
pinyin = _pinyin_list(chars, tones)
File "/usr/local/lib/python2.7/dist-packages/bopomofo/init.py", line 38, in _pinyin_list
return _pinyin.get_pinyin(chars, '|', show_tone_marks=tones).split('|')
TypeError: get_pinyin() got an unexpected keyword argument 'show_tone_marks'

what's the problem?

@wangmengmeng99
Copy link

这个问题是由于包的问题,新版本的show_tone_marks已经没有了,换成了tone_marks

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