From 2efe4b2d79ba4952fcceddafe5d03191413919b5 Mon Sep 17 00:00:00 2001 From: Damian Bregier Date: Mon, 26 Apr 2021 15:30:26 +0200 Subject: [PATCH] FIX: Naming convention --- Modules.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Modules.py b/Modules.py index e8486fc..62b9307 100644 --- a/Modules.py +++ b/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)) \ No newline at end of file + print(run.process(message)) + + + + + + + +