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

“第三多" is recognized as number range wrongly #3031

Open
gooooloo opened this issue Oct 14, 2022 · 1 comment
Open

“第三多" is recognized as number range wrongly #3031

gooooloo opened this issue Oct 14, 2022 · 1 comment

Comments

@gooooloo
Copy link

Describe the bug
“第三多" is recognized as number range wrongly, with the range (3, infinity).

To Reproduce

  1. just run Microsoft.Recognizers.Text.Number.NumberRecognizer.RecognizeNumberRange("销量第三多", "zh-cn", Microsoft.Recognizers.Text.Number.NumberOptions.ExperimentalMode);
  2. See result, it recognizes a range from 3 to infinity.
    image

Expected behavior
Either not recognized as number range, or the number range should be from 3 to 3.

Platform (please complete the following information):

  • Platform: .NET
  • Environment: NuGet package
  • Version of package 1.8.5
@felaray
Copy link
Contributor

felaray commented Nov 8, 2022

  1. In your case, using NumberRecognizer.RecognizeOrdinal is better than NumberRecognizer.RecognizeNumberRange.image
  2. The word "多" is a condition in regex for NumberRecognizer.RecognizeNumberRange

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants