topmine_src/utils.py
def load_vocab(path="intermediate_output/vocab.txt"):
    """
    Loads vocabulary from a file.
    """
    f = open(path, 'r')
    index_vocab = []
    index = 0
    for line in f:
        index_vocab.append(line.replace("\n", ""))
    return index_vocab

    Loads vocabulary from a file.
    
Loads vocabulary from a file.
Loads vocabulary from a file .
def load_vocab(path="intermediate_output/vocab.txt"):
    f = open(path, 'r')
    index_vocab = []
    index = 0
    for line in f:
        index_vocab.append(line.replace("\n", ""))
    return index_vocab
def load_vocab ( path = "intermediate_output/vocab.txt" ) : f = open ( path , 'r' ) index_vocab = [ ] index = 0 for line in f : index_vocab . append ( line . replace ( "\n" , "" ) ) return index_vocab
Loads vocabulary from a file.
Loads vocabulary from a file .
"""
    Loads vocabulary from a file.
    """
path