We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I've been using the following for the past few weeks and it works fine for onIntent function:
const { dockStart } = require('@nlpjs/basic'); const dock = await dockStart(); const nlp = dock.get('nlp'); await nlp.addCorpus('corpus-en.json'); await nlp.train(); nlp.onIntent = onIntent;
However, I just replaced it with the following & onIntent is no longer working (producing blank answer):
const { NlpManager } = require('node-nlp'); const nlp = new NlpManager(); await nlp.addCorpus('corpus-en.json'); await nlp.train(); nlp.onIntent = onIntent;
May I know the correct format for NlpManager to make it work?
The text was updated successfully, but these errors were encountered:
NlpManager is NOT the Nlp class but a convenient wrapper, so yes this code is not equivalent and so it will not work.
I think a short cut is nlp.nlp.onIntent = onIntent
Sorry, something went wrong.
It worked, thanks!
No branches or pull requests
I've been using the following for the past few weeks and it works fine for onIntent function:
However, I just replaced it with the following & onIntent is no longer working (producing blank answer):
May I know the correct format for NlpManager to make it work?
The text was updated successfully, but these errors were encountered: