topmine_src/utils.py
def store_vocab(index_vocab, path="intermediate_output/vocab.txt"):
    """
    Stores vocabulary into a file.
    """
    f = open('intermediate_output/vocab.txt', 'w')
    for word in index_vocab:
        f.write(word+"\n")
    f.close()

    Stores vocabulary into a file.
    
Stores vocabulary into a file.
Stores vocabulary into a file .
def store_vocab(index_vocab, path="intermediate_output/vocab.txt"):
    f = open('intermediate_output/vocab.txt', 'w')
    for word in index_vocab:
        f.write(word+"\n")
    f.close()
def store_vocab ( index_vocab , path = "intermediate_output/vocab.txt" ) : f = open ( 'intermediate_output/vocab.txt' , 'w' ) for word in index_vocab : f . write ( word + "\n" ) f . close ( )
Stores vocabulary into a file.
Stores vocabulary into a file .
"""
    Stores vocabulary into a file.
    """
index_vocab
path