Closed MattRiddell closed 1 year ago
Also, if I can understand how this should work I can help update documentation.
I see the code has been split out but don't see how you would combine the slots manager into the above example.
@MattRiddell Did you manage to get slot filling somehow working with v4?
oook ... I got it working ... maybe I find time to post a PR for documentation soon.
In fact all the methods have changed and are now on "nlp" class.
e.g.
And the entities are automatically registered via addDocument, so you just add them using the above methods.
nlp.slotManager.addSlot stays as before.
I just wonder why all these Ner Rules can not also being parsed out of the utterances from addDocument because also here we can see words before, after, in between and such ... nbut I assume this would be a new feature request :-)
new examples and documentation and fixes will be in #1171 and other PRs
Closing due to inactivity. Please, re-open if you think the topic is still alive.
In the documentation on the home page slot filling is linked to but goes to a document in the v3 folder:
https://github.com/axa-group/nlp.js/blob/master/docs/v3/slot-filling.md
NlpManager no longer contains
slotManager
oraddTrimEntity
?More specifically it says this:
The problem is that the slot manager stuff doesn't seem to be in NLPManager anymore so I'm guessing the code has to change?
I saw that by adding %name% in greetings.hello intent such as hello my name is %name% it does get added to the slot manager when I train it, but it doesn't appear to get parsed when I feed it "hello my name is matt".
This is also discussed in #561