FIX: Naming convention

This commit is contained in:
Damian Bregier 2021-04-26 15:30:26 +02:00
parent 711904c435
commit 2efe4b2d79

View File

@ -58,6 +58,7 @@ class Run:
self.arguments={ self.arguments={
0: "name" 0: "name"
} }
self.nlu = NLU(self.acts, self.arguments) self.nlu = NLU(self.acts, self.arguments)
self.dp = DP(self.acts, self.arguments) self.dp = DP(self.acts, self.arguments)
self.nlg = NLG(self.acts, self.arguments) self.nlg = NLG(self.acts, self.arguments)
@ -65,11 +66,22 @@ class Run:
def process(self, command): def process(self, command):
act = self.nlu.analyze(command) act = self.nlu.analyze(command)
self.dst.store(act) self.dst.store(act)
dest_act = self.dp.tacticChoice(self.dst.transfer())
return self.nlg.vectorToText(dest_act) basic_act = self.dp.tacticChoice(self.dst.transfer())
return self.nlg.vectorToText(basic_act)
run = Run() run = Run()
while(1): while(1):
message = input("Napisz coś: ") message = input("Napisz coś: ")
print(run.process(message)) print(run.process(message))