Use of Entities in the Classifier
After using natural for some hours I have discovered an amazing a powerful tool. However, coming from Dialogflow I have one question. In Dialogflow, you can create some Entities that are like a set of possible values for a consistent key.
Let's say, for example, that I have one Entity created, called animal. Animals if formed by this relations: mammal: [cat, dog, horse], insect: [spider, wasp, ant], fish: [shark, carp, guppy]. Then, I create a new rule for the classifier not based on the complete list of possibilities but on something like this:
myClassifier.addDocumentation("I always wanted to see an @animal", "i_want_to_see_an_animal");
myClassifier.addDocumentation("I always wanted to see a @animal.fish", "i_want_to_see_a_fish");
This prevents the user from writing all of the possibilities each time an animal is involved. It is even more useful if the result is something like ["i_want_to_see_an_animal", "dog"]. Creating custom responses for custom requests without having to create a function for each one.
Is there any way to use it? Have you consider introducing it? Thank you very much, your job is amazing.
Source of inspiration: https://cloud.google.com/dialogflow/docs/entities-overview