Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IT - Javascript] Impossible to get datetime parsed. #3098

Open
jBernavaPrah opened this issue Apr 26, 2023 · 1 comment
Open

[IT - Javascript] Impossible to get datetime parsed. #3098

jBernavaPrah opened this issue Apr 26, 2023 · 1 comment

Comments

@jBernavaPrah
Copy link

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
Copy link
Author

Hi @mtodd @sverrejoh @radical @ijbaird!

There is any news on this?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant