예제 #1
0
 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"))
예제 #2
0
 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