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

node-nlp does not feature actions and intents? #1251

Open
iamjohnseun opened this issue Jan 5, 2023 · 6 comments
Open

node-nlp does not feature actions and intents? #1251

iamjohnseun opened this issue Jan 5, 2023 · 6 comments

Comments

@iamjohnseun
Copy link

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?

@Apollon77
Copy link
Contributor

The current Git version is not yet released and should be released soon ... after that it should solve

@iamjohnseun
Copy link
Author

Alright, Thank you for your response.
Is there any workaround currently?

@Apollon77
Copy link
Contributor

because I do not know which exact featureset is available in the latest npm package, I have no clue ;-)

@iamjohnseun
Copy link
Author

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.

@Apollon77
Copy link
Contributor

Yes this is only fixed on github versions for now

@wilensky
Copy link

wilensky commented Aug 7, 2023

Any hews here:question:

Facing the same issue with the latest v4.27.0.

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

3 participants