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 429 forks source link

[* Duration] Extract duration units when preceded by ordinal numbers #2417

Open aitelint opened 3 years ago

aitelint commented 3 years ago

Duration units like "week", "month", "year"... should be recognized as duration entities when preceded by ordinal numbers. For example: "the first week is dedicated to exercises" --> "week" (duration)

tellarin commented 3 years ago

@LionbridgeCSII, can you take a stab at this and see if there may be any side-effects?

aitelint commented 3 years ago

@tellarin, yes there are some interferences with DatePeriod and now some patterns are not correctly handled in certain languages. I am working on fixing these issues.

tellarin commented 3 years ago

Please raise a flag if this becomes too unwieldy.