wit icon indicating copy to clipboard operation
wit copied to clipboard

[Bug] Intent classification not working

Open touchaponk opened this issue 8 years ago • 29 comments

Do you want to request a feature, report a bug, or ask a question about wit? Bug What is the current behavior? Intent classification (entity of 'trait' type) is not returning any result no matter what sentence I put in, even if it's an exact match. This starts happening 1 day ago

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Just train the intent with lots of data and try https://wit.ai/aongwachi1/inter06-th/entities this is one of the example

What is the expected behavior? It should return matching value

What is the App ID where you are experiencing this issue (if applicable)? many of them, including 5a7c8363-d226-4a58-8226-39c9d6bc9a92

touchaponk avatar Feb 09 '18 09:02 touchaponk

Thanks for reporting, I'll get a look.

patapizza avatar Feb 09 '18 18:02 patapizza

@touchaponk What are the other apps having issues? Was kbchatbot-en working before? Anybody else experiencing this?

patapizza avatar Feb 09 '18 23:02 patapizza

@patapizza many of them actually, here's another one 5a7c8363-d226-4a58-8226-39c9d6bc9a92 from what I notice if I train using the console UI it works fine, however once I use API to train the intent all at once it breaks

touchaponk avatar Feb 09 '18 23:02 touchaponk

@touchaponk To be clear, what do you mean by "using the API to train the intent"? Do you mean providing new samples to POST /samples?

patapizza avatar Feb 12 '18 17:02 patapizza

@patapizza I'm using PUT https://api.wit.ai/entities/$ENTITY_ID API to update the expressions

touchaponk avatar Feb 12 '18 19:02 touchaponk

Hi @patapizza, am experiencing the same issue. Im using PUT https://api.wit.ai/entities/$ENTITY_ID to update the expressions. The new expressions can be seen on the wit.ai console, but inputting the exact expression never goes to the correct intent.

Old intents removed through this API also are removed on the wit.ai console, but when downloading all data as a zip, I can still see these expressions in the expressions.json file.

josephlingzb avatar Feb 13 '18 02:02 josephlingzb

@patapizza , [Wit api is returning 0 entities for trained expressions #964](Wit api is returning 0 entities for trained expressions #964) , am experiencing same issue.

ckatta avatar Feb 13 '18 04:02 ckatta

@touchaponk For which entity did you do that? And which expressions?

@josephlingzb Same questions, and what is your app id?

@ckatta Addressing your issue in #964.

patapizza avatar Feb 13 '18 15:02 patapizza

for @josephlingzb it happens with all his apps, one example here: 59f6f0e3-2844-40d6-b9ee-599712584c67

l5t avatar Feb 13 '18 17:02 l5t

@patapizza I only have 1 entity inside the bot called "Intent" (trait)... and it happens to all expression, cant seem to detect anything

touchaponk avatar Feb 13 '18 17:02 touchaponk

Just to add on, if I then go to the wit.ai console and add a new intent through the console, things start working again.

I'm guessing if theres a way where we can reset the bot and retrain we could use that as a temp fix for now.

josephlingzb avatar Feb 14 '18 08:02 josephlingzb

@josephlingzb Thanks for the additional information.

patapizza avatar Feb 14 '18 13:02 patapizza

This is related to https://github.com/wit-ai/wit/issues/950. I'm working on it.

patapizza avatar Feb 14 '18 15:02 patapizza

I am having similar issues for this bot: 5a849ba6-e48d-451b-ba91-2ee76a18f16a. It is returning nothing, no matter what I type. It started to happen from a few days ago.

recime-platform avatar Feb 14 '18 21:02 recime-platform

@recime-platform It seems like it's working:

@josephlingzb Trying one of your apps seems working as well:

@touchaponk It seems like your apps still experience issues. Can you try refixing it through the console? PUT https://api.wit.ai/entities/$ENTITY_ID has been fixed.

patapizza avatar Feb 14 '18 22:02 patapizza

Working now

recime-platform avatar Feb 14 '18 22:02 recime-platform

@patapizza still experiencing the problem on 5a7bee9d-0140-4d21-9db6-6224e3afc5fb

touchaponk avatar Feb 14 '18 22:02 touchaponk

Hi @patapizza,

The old intents are working. The problem arises when we use the PUT https://api.wit.ai/entities/$ENTITY_ID to add to update any intents. The new intents or even added expressions on old intents do not work until we use the wit.ai console to add a new intent and allow the model to retrain.

I just tested again, the problem still exists. To reproduce the problem, use the API to update the entity with a new intent. Then try to test and see if the expression can activate that intent.

josephlingzb avatar Feb 15 '18 00:02 josephlingzb

Got it, still working on it.

Update: This should be fixed tomorrow.

patapizza avatar Feb 15 '18 18:02 patapizza

A fix has been deployed. Can you guys try doing a PUT /entities/intent request, wait a few minutes and confirm things are going as expected?

Thank you for your patience.

patapizza avatar Feb 17 '18 01:02 patapizza