wit icon indicating copy to clipboard operation
wit copied to clipboard

Wit api is returning 0 entities for trained expressions

Open ckatta opened this issue 8 years ago • 7 comments

I’m not able to get entities for trained keywords. It is returning 0 entities for each request call.

Earlier we are able to see entity with confidence greater 0.9. now it seems nothing gets returned. Issue exists for last 20 hours.

I'm using node-wit for client app.

My App Name: "A2KeyWords"

const client = new Wit({accessToken: 'SYTVJD2ASVHQDGY7ACQIMTTA3DO2YVBG'});
client.message("Open URL", {}).then(function (data) {
console.log('Yay, got Wit.ai response: ' + JSON.stringify(data));
})

now my app is open, please use entity "Open URL", and see the debug console to view the differences between working and not working.

please find snapshots below

working https://ibb.co/jSFkox

not working https://ibb.co/bCsWTx

ckatta avatar Feb 09 '18 06:02 ckatta

Hi @ckatta,

What is your app id?

Might be related to https://github.com/wit-ai/wit/issues/966.

patapizza avatar Feb 09 '18 17:02 patapizza

Hi @patapizza , app id is

5a12a005-2170-49c3-b671-d9a7d85c14b8

ckatta avatar Feb 11 '18 18:02 ckatta

It seems like it's working now:

BTW I see 102 trait entities that have very little validated samples. It would help to provide more examples to get better models. Also make sure that examples don't overlap with each other.

As an example, the Click entity has more validated samples and seem to work better:

Closing now, feel free to reopen if you still experience the issue.

patapizza avatar Feb 12 '18 17:02 patapizza

@patapizza, I am experiencing the same issue. Seems it is not working.

tried with node-wit.

ckatta avatar Feb 13 '18 04:02 ckatta

@ckatta Can you share a curl request that doesn't work?

patapizza avatar Feb 13 '18 15:02 patapizza

@patapizza, below are examples

working

curl -XGET 'https://api.wit.ai/message?v=20170307&q=switch to window'
-H 'Authorization: Bearer O7JZD6ARVXKN4NM43AFVYJROEY27YUIG'

https://api.wit.ai/message?v=20170307&q=switch to window

Authorization: Bearer O7JZD6ARVXKN4NM43AFVYJROEY27YUIG

not working

curl -XGET 'https://api.wit.ai/message?v=20170307&q=click on continue button'
-H 'Authorization: Bearer O7JZD6ARVXKN4NM43AFVYJROEY27YUIG'

https://api.wit.ai/message?v=20170307&q=click on continue button

Authorization: Bearer O7JZD6ARVXKN4NM43AFVYJROEY27YUIG

APP ID: 5a12a005-2170-49c3-b671-d9a7d85c14b8

ckatta avatar Feb 14 '18 04:02 ckatta

@ckatta Here's what I get on click on continue button:

{
  "_text":"click on continue button",
  "entities":{
    "Click":[{"confidence":0.52079275500015,"value":"Click"}],
    "ClickandWait":[{"confidence":0.54347663016262,"value":"ClickandWait"}]
  }
}

Looking at your app, I see click on continue button for Click and click on Continue button for ClickandWait.

patapizza avatar Feb 21 '18 22:02 patapizza