GithubHelp home page GithubHelp logo

Comments (6)

inna12 avatar inna12 commented on May 18, 2024

There is another issue with datetime recognition. When LUIS return the following response e.g

"entities": [
{
"entity": "20 may 2016",
"type": "builtin.datetime",
"startIndex": 28,
"endIndex": 38,
"resolution": {
"date": "2016-05-20"
}
},
{
"entity": "22 may 2016",
"type": "builtin.datetime",
"startIndex": 45,
"endIndex": 55,
"resolution": {
"date": "2016-05-22"
}
},
{
"entity": "paris",
"type": "builtin.geography",
"startIndex": 17,
"endIndex": 21,
"score": 0.968967259
}
]

The type is 'builtin.datetime' and EntityRecognizer doesn't resolve the time. I assume that it expects 'builtin.datetime.date' type.

from botframework-sdk.

Stevenic avatar Stevenic commented on May 18, 2024

What do you get back in this case? I would have expected it to find the first one but not the second.

from botframework-sdk.

 avatar commented on May 18, 2024

Line 105
switch (entity.resolution.resolution_type || entity.type) { case 'builtin.datetime.date': case 'builtin.datetime.time':

If type is 'builtin.datetime' like in my case, then it would not be resolved.

from botframework-sdk.

Stevenic avatar Stevenic commented on May 18, 2024

I see... Have you tried adding an additional case statement directly to the JS of the module? Just curious if that fixes things. They may have changed the entity titles on us. I can look into this too but it may be a bit.

from botframework-sdk.

Stevenic avatar Stevenic commented on May 18, 2024

I've checked in a fix for this. Will be in the next release of the SDK coming out shortly.

from botframework-sdk.

v-thgratMSGit avatar v-thgratMSGit commented on May 18, 2024

Closing this issue. Please open a new issue for further discussion if necessary. Thanks!

from botframework-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.