node-nlp does not feature actions and intents?
iamjohnseun opened this issue · comments
I followed the documentation with the installation procedure for node-nlp.
I managed to get the question and answer feature working which is the only documented feature i found for node-nlp.
I checked the examples and they seem to be for NLP.js and not node-nlp.
And so i am unable to use the actions and intents feature of the package.
I tried to create a config file,
i even tried this
const manager = new NlpManager({
languages: ["en"],
nlu: { useNoneFeature: false },
corpora: ["./corpora/corpus.json"],
});
manager.registerActionFunction("getLocalTimeAction", getLocalTimeAction);
but then i get an error
TypeError: manager.registerActionFunction is not a function
Is there any way around this or perhaps i'm missing something?
The current Git version is not yet released and should be released soon ... after that it should solve
Alright, Thank you for your response.
Is there any workaround currently?
because I do not know which exact featureset is available in the latest npm package, I have no clue ;-)
I just tried the example given here
While using both registerActionFunction
and addAction
examples, the {{ time }}
variable is not replaced by the functions return value.
Yes this is only fixed on github versions for now
Any hews here:question:
Facing the same issue with the latest v4.27.0
.