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

Add functionality to swap in custom disambiguators #2

Open
beckydvn opened this issue Aug 16, 2022 · 0 comments
Open

Add functionality to swap in custom disambiguators #2

beckydvn opened this issue Aug 16, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@beckydvn
Copy link
Member

beckydvn commented Aug 16, 2022

Allow the bot designer to add custom disambiguators to differentiate between >1 Spacy entity in the same utterance (see #1). In the future, this would apply not only to Spacy but any extraction method that would cause ambiguity (Rasa included).

For example, in the utterance "I want to fly from London to Berlin," Spacy would extract two GPE entities: London and Berlin. However, without extra help it is unable to tell you which is the origin city and which is the destination. A very basic custom disambiguator would assign London to the origin city as it is preceded by "from" and Berlin to the destination as it is preceded by "to."

While it is true that Rasa has "roles" and "groups" functionality to address this, binding dialogue disambiguation to Rasa that tightly significantly complicates things, given that not all entities are extracted with Rasa. Additionally, Hovor has no notion of "roles" or "groups" and changes would have to be made to accommodate that. Separate context variables would be needed in the end, which defeats the purpose of Rasa's roles/groups of removing the need for "duplicate variables." So, some functionality detached from the extraction method is needed to handle cases like these.

@beckydvn beckydvn added the enhancement New feature or request label Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant