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

Missing slots with downloaded nlu engine using snips_nlu #818

Open
ghost opened this issue Jun 28, 2019 · 1 comment
Open

Missing slots with downloaded nlu engine using snips_nlu #818

ghost opened this issue Jun 28, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Jun 28, 2019

Hi,

I’ve created an assistant via console, and downloaded it. When I test the queries via console, it returns the right slots, however, when I load the downloaded assistant, it gets the intents right, but misses most of the slots for the same queries tested in console.

Am I missing something? When loading via from_path(), I point to the assistant’s nlu_engine folder.

from snips_nlu import SnipsNLUEngine
import sys
import json

def main(argv):
    nlu_engine = SnipsNLUEngine.from_path(argv[1])

    try:
        while True:
            text = input('> ')
            parsing = nlu_engine.parse(text)
            print(json.dumps(parsing, indent=2))
    except KeyboardInterrupt:
        pass

if __name__ == '__main__':
    main(sys.argv)
@adrienball
Copy link
Contributor

Hi @demirhere,
Which version of snips_nlu are you using ?
You should make sure you are using the latest version by running pip install --upgrade snips-nlu.

The assistant gets retrained right before it is downloaded, and this process may produce a slightly difference NLU engine than the one you tested before in the console.
If your intents contain enough utterances, you should see consistent results from one training to another. However, if you have provided too few utterances (<10~20) for some intents, then your assistant may be a bit unstable.

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

1 participant