From 20531d729d1d196dbcb6db14a6972cda12e7fc39 Mon Sep 17 00:00:00 2001 From: Krzysztof Bojakowski Date: Fri, 3 May 2024 00:35:50 +0200 Subject: [PATCH] Zmiana nazwy pliku CamelCase -> snake_case --- src/main.py | 4 ++++ ...guageUnderstanding.py => natural_languag_understanding.py} | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/service/{NaturalLanguageUnderstanding.py => natural_languag_understanding.py} (71%) diff --git a/src/main.py b/src/main.py index 5c20fb1..8150f48 100644 --- a/src/main.py +++ b/src/main.py @@ -1,7 +1,11 @@ from model.frame import Frame from service.dialog_state_monitor import DialogStateMonitor from service.dialog_policy import DialogPolicy +from service.natural_languag_understanding import NaturalLanguageUnderstanding +print("Natural language understanding, example:") +naturalLanguageUnderstanding = NaturalLanguageUnderstanding() +print(naturalLanguageUnderstanding.convertTextToFrame("Cześć, jak masz na imię?")) # Example print("Dialog state monitor, examples:") diff --git a/src/service/NaturalLanguageUnderstanding.py b/src/service/natural_languag_understanding.py similarity index 71% rename from src/service/NaturalLanguageUnderstanding.py rename to src/service/natural_languag_understanding.py index 96ae838..8e2672f 100644 --- a/src/service/NaturalLanguageUnderstanding.py +++ b/src/service/natural_languag_understanding.py @@ -12,7 +12,3 @@ class NaturalLanguageUnderstanding: if(word in self.dictionary): frame+=self.dictionary[word]+"&" return frame[0:-1] - - -naturalLanguageUnderstanding = NaturalLanguageUnderstanding() -print(naturalLanguageUnderstanding.convertTextToFrame("Cześć, jak masz na imię?")) \ No newline at end of file