topmine_src/utils.py
def _get_string_phrase(phrase, index_vocab):
    """
    Returns the string representation of the phrase.
    """
    res = ""
    for vocab_id in phrase.split():
        if res == "":
            res += index_vocab[int(vocab_id)]
        else:
            res += " " + index_vocab[int(vocab_id)]
    return res

    Returns the string representation of the phrase.
    
Returns the string representation of the phrase.
Returns the string representation of the phrase .
def _get_string_phrase(phrase, index_vocab):
    res = ""
    for vocab_id in phrase.split():
        if res == "":
            res += index_vocab[int(vocab_id)]
        else:
            res += " " + index_vocab[int(vocab_id)]
    return res
def _get_string_phrase ( phrase , index_vocab ) : res = "" for vocab_id in phrase . split ( ) : if res == "" : res += index_vocab [ int ( vocab_id ) ] else : res += " " + index_vocab [ int ( vocab_id ) ] return res
Returns the string representation of the phrase.
Returns the string representation of the phrase .
"""
    Returns the string representation of the phrase.
    """
phrase
index_vocab