def __init__(self, path): self.projectPath = path self.trainFiles = Path.filesWithExtension( "json", Path.joinPath(self.projectPath, "training")) self.testFiles = Path.filesWithExtension( "json", Path.joinPath(self.projectPath, "test")) self.evaFiles = Path.filesWithExtension( "json", Path.joinPath(self.projectPath, "evaluation"))
def files(ext, paths=[ r"..\..\..\5. may\activities\Abstract and reasoning", '.' ]): files = [] for p in paths: files += ListDB.filterOutResult([".ipynb_checkpoints"], Path.filesWithExtension(ext, p)) return files