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