axa-group / nlp.js

An NLP library for building bots, with entity extraction, sentiment analysis, automatic language identify, and so more
MIT License
6.28k stars 621 forks source link

¿How to use addNamedEntityText on version 4? #854

Closed medisoft closed 2 years ago

medisoft commented 3 years ago

Hi! I'm willing to use named entities to get information about the user, with slots. The documentation I found is for v3, and I'm asking if the v4 has something that is compatible.

Because the documentation for v4 is not very complete, and could't find any examples on how to implement asking for information to the user.

I tried to create a slot, with the intend and entity and multilanguage questions, but was not able to get the data from the user.

Thanks

sandro-pasquali commented 3 years ago

I too would be thankful for a v4 version of the examples on this page: https://github.com/axa-group/nlp.js/blob/master/docs/v3/slot-filling.md

The above is v3, which is linked from the TOC[slot filling] entry in readme.

Fantastic lib!

ericzon commented 3 years ago

Hello, take a look this test as example: https://github.com/axa-group/nlp.js/blob/5a0dfc580410c15d355851a8f852e81a70cff1f4/packages/node-nlp/test/nlp/nlp-manager.test.js it's using node-nlp package, that tries to keeps compatibility with v3 style. Anyway, I suggest to take a different approach to get something like slot filling, check v4 bot orchestration topic

ericzon commented 2 years ago

Topic closed due to inactivity.