Source code for deeppavlov.models.go_bot.nlu.nlu_manager_interface

from abc import ABCMeta, abstractmethod

from deeppavlov.models.go_bot.nlu.dto.nlu_response_interface import NLUResponseInterface


[docs]class NLUManagerInterface(metaclass=ABCMeta): @abstractmethod def nlu(self, text) -> NLUResponseInterface: pass
[docs] @abstractmethod def num_of_known_intents(self) -> int: """ Returns: the number of intents known to the NLU module """ pass