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

numbers_to_digits doesn't handle empty token list #162

Open
ChanceNCounter opened this issue Dec 8, 2020 · 1 comment
Open

numbers_to_digits doesn't handle empty token list #162

ChanceNCounter opened this issue Dec 8, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@ChanceNCounter
Copy link
Contributor

Bug revealed by mismatch between Mycroft and a fallback skill's configured languages:

    return CatalanNormalizer().normalize(text, remove_articles)
  File "/home/jmontane/mycroft-core/.venv/lib/python3.7/site-packages/lingua_franca/lang/parse_common.py", line 172, in normalize
    utterance = self.numbers_to_digits(utterance)
  File "/home/jmontane/mycroft-core/.venv/lib/python3.7/site-packages/lingua_franca/lang/parse_common.py", line 119, in numbers_to_digits
    words = self.tokenize(utterance)
  File "/home/jmontane/mycroft-core/.venv/lib/python3.7/site-packages/lingua_franca/lang/parse_ca.py", line 252, in tokenize
    if tokens[-1] == '-':
IndexError: list index out of range

(reported by jmontane in Mattermost)

@ChanceNCounter ChanceNCounter added the bug Something isn't working label Dec 8, 2020
@JarbasAl
Copy link
Collaborator

JarbasAl commented Dec 9, 2020

not related to any mismatch

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants