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

recognize_datetime, a common Chinese date range "下个星期" / "下星期" (next week) is not recognized #3144

Open fangnahz opened 7 months ago

fangnahz commented 7 months ago

Describe the bug A very common Chinese date expression is not recognized

To Reproduce

>>> from recognizers_date_time import Culture, recognize_datetime
>>> recognize_datetime("下个星期", Culture.Chinese)
[]
>>> recognize_datetime("下星期", Culture.Chinese)
[]

Expected behavior Should return the date range for next week.

Platform (please complete the following information):

$ pip show recognizers-text-date-time
Name: recognizers-text-date-time
Version: 1.0.2a2
Summary: recognizers-text-date-time README
Home-page: https://github.com/Microsoft/Recognizers-Text
Author: Microsoft
Author-email: UNKNOWN
License: MIT
Location: /Users/zhangfan/miniconda3/envs/lip/lib/python3.9/site-packages
Requires: datedelta, recognizers-text, recognizers-text-number, recognizers-text-number-with-unit, regex
Required-by: