GithubHelp home page GithubHelp logo

My entities are empty about pywit HOT 8 CLOSED

wit-ai avatar wit-ai commented on July 30, 2024 1
My entities are empty

from pywit.

Comments (8)

 avatar commented on July 30, 2024 1

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.

from pywit.

 avatar commented on July 30, 2024 1

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.

from pywit.

 avatar commented on July 30, 2024 1

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.

from pywit.

l5t avatar l5t commented on July 30, 2024

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.

from pywit.

PabloVallejo avatar PabloVallejo commented on July 30, 2024

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?

from pywit.

PabloVallejo avatar PabloVallejo commented on July 30, 2024

@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.

from pywit.

 avatar commented on July 30, 2024

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

from pywit.

l5t avatar l5t commented on July 30, 2024

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

from pywit.

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.