topmine_src/utils.py
def store_phrase_topics(document_phrase_topics, path="intermediate_output/phrase_topics.txt"):
    """
    Stores topic for each phrase in the document.
    """
    f = open(path, 'w')
    for document in document_phrase_topics:
        f.write(",".join(str(phrase) for phrase in document))
        f.write("\n")

    Stores topic for each phrase in the document.
    
Stores topic for each phrase in the document.
Stores topic for each phrase in the document .
def store_phrase_topics(document_phrase_topics, path="intermediate_output/phrase_topics.txt"):
    f = open(path, 'w')
    for document in document_phrase_topics:
        f.write(",".join(str(phrase) for phrase in document))
        f.write("\n")
def store_phrase_topics ( document_phrase_topics , path = "intermediate_output/phrase_topics.txt" ) : f = open ( path , 'w' ) for document in document_phrase_topics : f . write ( "," . join ( str ( phrase ) for phrase in document ) ) f . write ( "\n" )
Stores topic for each phrase in the document.
Stores topic for each phrase in the document .
"""
    Stores topic for each phrase in the document.
    """
document_phrase_topics
path