facebook / duckling

Language, engine, and tooling for expressing, testing, and evaluating composable language rules on input strings.
Other
4.06k stars 723 forks source link

Date time Italian language improvement #587

Open agospaolo89 opened 3 years ago

agospaolo89 commented 3 years ago

Hello, I have seen two little issues in the italian language, using "wit.ai".

-The hour with a dot form (e.g. "11.30") is not completely recognized: it is recognized just "11.00" -If I wrote "martedì prossimo" ( next Tuesday), it is not recognized the correct date: if today is 28 March 21, it is recognized 6 April in place of 30 March.

Thank you :-) I hope I can write here.

chessai commented 3 years ago

-The hour with a dot form (e.g. "11.30") is not completely recognized: it is recognized just "11.00"

Likely because there is no rule for detecting it.

-If I wrote "martedì prossimo" ( next Tuesday), it is not recognized the correct date: if today is 28 March 21, it is recognized 6 April in place of 30 March.

'next' is not recognised as 'upcoming', rather it increments the date by 1 based on the time grain.