def _loadVocab(): with open(DatasetManager.getGloveVocabCSVPath(), 'r') as f: vocab = list(csv.reader(f))[0] return vocab
def readVocabFromCSVFile(): with open(DatasetManager.getGloveVocabCSVPath(), 'r', encoding='utf-8') as file: reader = csv.reader(file) return list(reader)[0]