예제 #1
0
파일: classify.py 프로젝트: Aquila42/watson
def tweets(entered):
    name = PullIdGenTweetText.getTweeterInfo(entered)
    makewordcloud.makecloud(entered)
    stacked = StackedClassifier(entered,name)
    gender,age = stacked.get_labels()
    wordcloud = 'static/' + entered + '_cloud.png'
    return age,gender,wordcloud,name
예제 #2
0
def tweets(entered):
    name = PullIdGenTweetText.getTweeterInfo(entered)
    makewordcloud.makecloud(entered)
    stacked = StackedClassifier(entered,name)
    print("Getting age and gender")
    gender,age = stacked.get_labels()
    wordcloud = 'static/' + entered + '_cloud.png'
    print age
    print gender
    print wordcloud
    # return age, gender, wordcloud
    return age,gender,wordcloud,name