FIX: Naming convention
This commit is contained in:
parent
711904c435
commit
2efe4b2d79
16
Modules.py
16
Modules.py
@ -58,6 +58,7 @@ class Run:
|
||||
self.arguments={
|
||||
0: "name"
|
||||
}
|
||||
|
||||
self.nlu = NLU(self.acts, self.arguments)
|
||||
self.dp = DP(self.acts, self.arguments)
|
||||
self.nlg = NLG(self.acts, self.arguments)
|
||||
@ -65,11 +66,22 @@ class Run:
|
||||
|
||||
def process(self, command):
|
||||
act = self.nlu.analyze(command)
|
||||
|
||||
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()
|
||||
while(1):
|
||||
message = input("Napisz coś: ")
|
||||
print(run.process(message))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user