def exportVocabulary(self, indexes): FileManager.writeFile(FileManager.getVocabularyFileUrl(self.type), json.dumps(indexes)) return self
def importVocabulary(self): return json.loads(FileManager.readFile(FileManager.getVocabularyFileUrl(self.type)))