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

My entities are empty #54

Closed
ghost opened this issue Jul 7, 2016 · 8 comments
Closed

My entities are empty #54

ghost opened this issue Jul 7, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented Jul 7, 2016

Hi guys, first of all thank you for your amazing tool ! :)

I've been playing with it a bit and I have a weird bug I think with the pywit api, I can't get any entities it is all empty. In the log part of the wit admin I have this message : intent(null)=default_intent. Do you have any hint ?

Best regards.
Way.

@ghost ghost changed the title My context is empty My entities is empty Jul 7, 2016
@ghost ghost changed the title My entities is empty My entities are empty Jul 7, 2016
@l5t
Copy link

l5t commented Jul 7, 2016

Maybe your app was not yet trained. It seems to work now. Remember, the more examples you validate the better Wit will be at extracting entities.

@ghost
Copy link
Author

ghost commented Jul 13, 2016

Hi @l5t
I think there is maybe a bug in the pywit api because no entities are returned.
Other users got the same issue, see this thread : #53
Best regards,
Way.

@PabloVallejo
Copy link

hi @waylander47 and @l5t

I have the same issue, the method getForecast is being called with its first argument as an UUID object and its second one as an empty dict.

# >>> 1ad02df5493f11e6-b9e8-d0e140
# >>> {} 

Any ideas on how to fix it?

@ghost
Copy link
Author

ghost commented Jul 14, 2016

Hi @PabloVallejo

I decided to use the converse method from the Wit object. You can call it like that : my_wit_object.converse(session_id, message, context, verbose)
The context and verbose parameters are not mandatory.
To begin a conversation with your bot.

Way.

@ghost
Copy link
Author

ghost commented Jul 15, 2016

Hi @PabloVallejo @datatec24 @adavanisanti @l5t

In the wit.py line 106 (in your site package folder where your wit installation reside) you need to add two parameters to the function call : rst['entities'] and user_message. Like that you get two more parameters the entities and the user message.

Best regards,
Way.

@PabloVallejo
Copy link

@waylander47 I installed the package directly from master and it works perfectly 💯

This is rare given that master as 698ce62 is tagged as the last version in pip.

@ghost
Copy link
Author

ghost commented Jul 16, 2016

Hi @PabloVallejo
Thanks for the tip. Yes the version has changed they have updated the code I think.

@l5t
Copy link

l5t commented Jul 20, 2016

Sorry for the late reply, can you try pip install --upgrade and try again

@l5t l5t closed this as completed Jul 20, 2016
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

2 participants