Recognizers-Text icon indicating copy to clipboard operation
Recognizers-Text copied to clipboard

[IT - Javascript] Impossible to get datetime parsed.

Open jBernavaPrah opened this issue 2 years ago • 1 comments

Describe the bug Trying to use the javascript version of recognizers-text, I cannot succeed in extracting the datetime element using Italian phrases. Using the English one, all is working as expected.

To Reproduce 1 - Install the javascript packages. 2 - Try first the English Phrase.

import recognizers from '@microsoft/recognizers-text-suite';
// [...]
console.log(Recognizers.recognizeDateTime(
          'I would like an appointment tomorrow morning',
          Recognizers.Culture.English));
// [output]
// [{"start":28,"end":43,"resolution":{"values":[{"timex":"2023-04-27TMO","type":"datetimerange","start":"2023-04-27 08:00:00","end":"2023-04-27 12:00:00"}]},"text":"tomorrow morning","typeName":"datetimeV2.datetimerange"}]

3 - Try the Italian Prase (the meaning is the same)

import recognizers from '@microsoft/recognizers-text-suite';
// [...]
console.log(Recognizers.recognizeDateTime(
          'Vorrei un appuntamento domani mattina',
          Recognizers.Culture.Italian));
// [output]
// []

Expected behaviour Recognize the correctly recognize and parse the keywords "domani mattina".

Sample input/output As applicable, add examples of text input and JSON output to help explain the problem.

Platform (please complete the following information):

  • Platform: JavaScript
  • Environment: npm package
  • Version of the package: 1.3.0

Additional context Checking the code and files here, seems that are entirely missing the Italian resources. Is there something that I can do?

Thanks!

jBernavaPrah avatar Apr 26 '23 10:04 jBernavaPrah

Hi @mtodd @sverrejoh @radical @ijbaird!

There is any news on this? Thanks!

jBernavaPrah avatar May 02 '23 12:05 jBernavaPrah