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

Tokenizer IndexError on strings with just stress markers #46

Closed
kylebgorman opened this issue Nov 6, 2019 · 1 comment
Closed

Tokenizer IndexError on strings with just stress markers #46

kylebgorman opened this issue Nov 6, 2019 · 1 comment

Comments

@kylebgorman
Copy link
Contributor

To reproduce:

import segments
segments.Tokenizer()("ˈ", ipa=True)

Seems like on L316 you need to check that result isn't empty?

@xrotwang
Copy link
Contributor

xrotwang commented Nov 7, 2019

Fixed in d74a23c

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