BESSER-Bot-Framework
BESSER-Bot-Framework copied to clipboard
Implement any_entity
This base entity is not implemented. It is a challenging implementation since it must match any text fragment following a training sentence pattern. Examples:
ANY is my name My name is ANY "My name is ANY, nice to meet you"
Unless we consider an exact match with the original training sentence, it is hard to decide where the ANY starts and ends. So, an easy first implementation could be done by cutting where the text before/after the ANY parameter is found.
This is the same approach that nlp.js used. And I agree it's good enough for a first phase. We don't want to try to go for a perfect solution
Moreover now it can be implemented via the LLM intent classifier