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

number extractors break on multiple decimal numbers #93

Open
ChanceNCounter opened this issue Mar 19, 2020 · 0 comments
Open

number extractors break on multiple decimal numbers #93

ChanceNCounter opened this issue Mar 19, 2020 · 0 comments
Labels
bug Something isn't working en relates to english language

Comments

@ChanceNCounter
Copy link
Contributor

extract_number() and extract_numbers(), at least in English, go completely haywire when there's more than one decimal number in the input string.

>>> lingua_franca.parse.extract_numbers("two point seven five and three point six")
[2.0, 7.0, 5.0, 3.0, 6.0]
>>> lingua_franca.parse.extract_number("two point seven five and three point six")
2

This may have a common solution with #88 and #92

@ChanceNCounter ChanceNCounter added the bug Something isn't working label Mar 19, 2020
ChanceNCounter added a commit to ChanceNCounter/lingua-franca that referenced this issue Mar 24, 2020
ChanceNCounter added a commit to ChanceNCounter/lingua-franca that referenced this issue Mar 24, 2020
@JarbasAl JarbasAl added the en relates to english language label Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working en relates to english language
Projects
None yet
Development

No branches or pull requests

2 participants