microsoft / Recognizers-Text

Microsoft.Recognizers.Text provides recognition and resolution of numbers, units, date/time, etc. in multiple languages (ZH, EN, FR, ES, PT, DE, IT, TR, HI, NL. Partial support for JA, KO, AR, SV). Packages available at: https://www.nuget.org/profiles/Recognizers.Text, https://www.npmjs.com/~recognizers.text
MIT License
1.68k stars 430 forks source link

Fix wrong resolution for some fractions #3151

Closed MichaelMWW closed 3 months ago

MichaelMWW commented 3 months ago

Fix wrong resolution for some fractions, scenario as below. “two hundred and fifty-four hundredths” -> 200.54 (correctly found) “two and fifty-four hundredths” -> 0.0037037037… (it calculates (2 / 54) div by 100) instead of 2.54