You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
In English Number, I tried to parse the sentence: "two out of five hundred tvs". The result I expected was 2/500=0.004. But see below, it doesn't work.
To Reproduce
Steps to reproduce the behavior:
Add this case to
{
"Input": "two out of five hundred tvs",
"Results": [
{
"Text": "two out of five hundred",
"TypeName": "number",
"Resolution": {
"subtype": "fraction",
"value": "0.004"
},
"Start": 0,
"End": 22
}
]
},
Run:
>ava --match='*tvs*'
Result is:
index-number » Number - English - NumberModel - "two out of five hundred tvs"
Result.Resolution.value
Difference:
- 'INFINITY'
+ '0.004'
Expected behavior
It should pass the test
The text was updated successfully, but these errors were encountered:
"two out of five hundred tvs" work in .NET. But weirdly "two out of five hundreds tvs" produces wrong results. @aitelint Can you take a quick look? At least the incorrect sentence shouldn't produce such incorrect results in .NET.
tellarin
changed the title
Issue with fracLikeNumberParse?
[EN Number] Issue with fracLikeNumberParse in JavaScript
Dec 31, 2021
Describe the bug
In English Number, I tried to parse the sentence: "two out of five hundred tvs". The result I expected was 2/500=0.004. But see below, it doesn't work.
To Reproduce
Steps to reproduce the behavior:
Add this case to
Run:
Result is:
Expected behavior
It should pass the test
The text was updated successfully, but these errors were encountered: