Fix dialogue state reset

This commit is contained in:
Marcin Kostrzewski 2022-06-08 08:20:49 +02:00
parent 60c68015f7
commit de7b7ee1c6

View File

@ -1,8 +1,8 @@
import jsgf import jsgf
from os import listdir 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))] onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
grammars = [] grammars = []