SimGus / Chatette

A powerful dataset generator for Rasa NLU, inspired by Chatito
MIT License
318 stars 56 forks source link

Error on second run within same script #28

Closed KendallPruitt closed 4 years ago

KendallPruitt commented 4 years ago

There seems to be an issue when running chatette more than once in a single script. Even when we reset either the instance or the system, it throws a syntax error like: SyntaxError: Tried to declare intent 'E7WzqixfmcHF1zAvsE9LIbEL450pPHOe' twice. It always works the first time, but even though we give it a random intent name every time, it thinks it's already been declared.

I've tried deleting the facade object as well as reloading the chatette library altogether, but I still can't avoid the error.

chatetteTest.txt is the python script I'm using to test it and common.txt is a required grammar file to run it. Any help you could provide on this would be greatly appreciated.

chatetteTest.txt

common.txt

SimGus commented 4 years ago

I'll check that out as soon as I can. Thanks for providing your files :)

SimGus commented 4 years ago

This is fixed on the dev branch. It should be included in the next release.

Thanks again for raising this issue!