-
Notifications
You must be signed in to change notification settings - Fork 625
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
Cannot read properties of undefined (reading 'latestSlot') #1252
Comments
Hi, there is no mandatory in your example file? Please show the code and olease shjow the full error message In the version on GitHub there were many changes around that, so it could be an idea to retest this after next release - but if you provide more infos I could also have a look to make sure it is fixed |
With the mandatory option set to true, Here is the full error,
|
Ahh cool ... @eric-lara released a new version... will check. DO you have your full code please that I can reproduce it? Or tell here to set in your corpus above a mandatory true |
Ok ... now I understand (after reading several times) that it has nothing to do with mandaory. Can you please tell which text you process with the corpus above? |
I tried to process
|
hehe ... tries the same (also john) .. was able to reporoduce, will do PR for fix |
Do you know when the npm version will be released? |
@iamjohnsimeon Fix see my PR yif you want to try it out/verify it: https://github.com/axa-group/nlp.js/pull/1253/files#diff-0950488bddfffba3f4622cfd4fbb2d2737c6fa1218c1e165536b3be2d2d5e210 |
No you can't! nlp.js is a monrepo ... you can not install the github version as easy as normal. This will not work. So best way to unblock you is to change manually the code until a fix gets released |
@iamjohnsimeon fix released by eric too |
Describe the bug
When trying to fill slots using the corpus file, If the
mandatory
flag is set totrue
, it throws the errorCannot read properties of undefined (reading 'latestSlot')
Also when i remove the mandatory flag, it still shows the same error.
To Reproduce
Steps to reproduce the behavior:
corpus.json
fileconfig.json
filei am john
in the consoleCannot read properties of undefined (reading 'latestSlot')
Expected behavior
The console should return one of the specified answers and ask for the users' location according to the data specified in the corpus file. for example
Nice to meet you john
Where are you from john
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: