From de7b7ee1c66f5efbf788b924a250171a33e05d05 Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Wed, 8 Jun 2022 08:20:49 +0200 Subject: [PATCH] Fix dialogue state reset --- system_mockup/analizator_jezyka_naturalnego.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system_mockup/analizator_jezyka_naturalnego.py b/system_mockup/analizator_jezyka_naturalnego.py index ce8643a..8cbfdd3 100644 --- a/system_mockup/analizator_jezyka_naturalnego.py +++ b/system_mockup/analizator_jezyka_naturalnego.py @@ -1,8 +1,8 @@ import jsgf from os import listdir -from os.path import isfile, join +from os.path import isfile, join, dirname, abspath -mypath = "../semantic_parser/gramatics/" +mypath = dirname(abspath(__file__)) + "/../semantic_parser/gramatics/" onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))] grammars = []