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

Mistake when changing the example a little #2

Open
sniperwrb opened this issue Jul 8, 2019 · 0 comments
Open

Mistake when changing the example a little #2

sniperwrb opened this issue Jul 8, 2019 · 0 comments

Comments

@sniperwrb
Copy link

g2p("我写了一行代码")
Out[4]:
[('我', 'r', 'wo3', 'wo2', '/I/me/my/', '我'),
('写', 'v', 'xie3', 'xie3', '/to write/', '寫'),
('了',
'u',
'le5',
'le5',
'/(modal particle intensifying preceding clause)/(completed action marker)/',
'了'),
('一行', 'n', 'yi1 xing2', 'yi4 xing2', '/party/delegation/', '一行'),
('代码', 'n', 'dai4 ma3', 'dai4 ma3', '/code/', '代碼')]

The program (word segmentation) thinks that '一行' is a word as transcribed (which is not what we expect), instead of being a phrase pronouncing "yi4 hang2" and meaning "a line of" (which is correct).

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

1 participant