Skip to content

Commit

Permalink
[EN Units] 1.6m isn't recognized (Python) #1519 (#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
songwenhao1 authored and tellarin committed Jul 30, 2019
1 parent 5b50274 commit f994e17
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def __init__(self, placeholder):
val='DoubleNum'),
ReVal(
re=RegExpUtility.get_safe_reg_exp(
EnglishNumeric.DoubleWithMultiplierRegex),
EnglishNumeric.DoubleWithMultiplierRegex, regex.S),
val='DoubleNum'),
ReVal(
re=RegExpUtility.get_safe_reg_exp(
Expand Down
19 changes: 19 additions & 0 deletions Specs/NumberWithUnit/English/DimensionModel.json
Original file line number Diff line number Diff line change
Expand Up @@ -814,5 +814,24 @@
"Input": "I ' m tired",
"NotSupported": "javascript, python, java",
"Results": []
},
{
"Input": "I'm 1.8m tall.",
"Results": [
{
"Text": "1.8m",
"Start": 4,
"End": 7,
"TypeName": "dimension",
"Resolution": {
"unit": "Meter",
"value": "1.8"
}
}
]
},
{
"Input": "It cost 1.8M dollars.",
"Results": []
}
]

0 comments on commit f994e17

Please sign in to comment.