Skip to content

recognizer_datetime, recognize Chinese "一个半小时" failed #3188

Description

@xinhecuican

Describe the bug
recognize "一个半小时" as "半小时"

To Reproduce

from recognizers_date_time import Culture, recognize_datetime
recognize_datetime("一个半小时", Culture.Chinese)
for result in results:
    print(result.text)

"半小时"

Expected behavior
output "一个半小时"

Platform (please complete the following information):

  • Platform: Python
  • Environment: pip
  • Version of package 1.0.2a2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions