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