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

Unclear intent conversion in NLU #199

Open
IKostric opened this issue Aug 22, 2023 · 0 comments
Open

Unclear intent conversion in NLU #199

IKostric opened this issue Aug 22, 2023 · 0 comments

Comments

@IKostric
Copy link
Collaborator

    def _convert_deny_to_inquire(
        self, user_utterance: UserUtterance
    ) -> List[DialogueAct]:
        """Converts deny intent to inquire intent.

        Args:
            user_utterance: User utterance.

        Returns:
            A list of dialogue acts.
        """
        # TODO: It is unclear the purpose of this function. It should be
        # removed or refactored.
        deny_dact = self.intents_checker.check_basic_intent(
            user_utterance, UserIntents.DENY
        )
        if deny_dact:
            deny_dact[0].intent = UserIntents.INQUIRE
        return deny_dact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant