14 lines
497 B
Python
14 lines
497 B
Python
from presenter.chatbot_modules.DialogueStateTracker import DialogueStateTracker
|
|
from presenter.chatbot_modules.NaturalLanguageUnderstanding import NaturalLanguageUnderstanding
|
|
|
|
|
|
class Presenter:
|
|
dialogue_state_tracker = DialogueStateTracker()
|
|
nlu = NaturalLanguageUnderstanding()
|
|
|
|
def process_user_input(self, user_input):
|
|
user_frames = self.nlu.text_to_user_frame(user_input)
|
|
dialogue_state = self.dialogue_state_tracker.processUserAct(user_frames)
|
|
|
|
return ''
|