Exemplo n.º 1
0
def liwc_results(str, _name):
    liwc_lexicon = Liwc()
    #Count the number of words in each Category
    category_counts = Counter(liwc_lexicon.read_document(str))
    print 'Basic category counts: {}'.format(category_counts)
    #Calculate the score for each category
    full_counts = liwc_lexicon.summarize_document(str)
    liwc_lexicon.print_summarization(full_counts, _name)