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