# I can see the model has been successfully created.# I createdtried with the training data, still won't workfactor(0)我尝试在naiveBayes中按照帮助手册中的示例进行操作,它对我很有效。我不确定
我使用LineairSVM来预测推文的情绪。LSVM将推文分类为中性或正面。我使用管道(按顺序)对tweet进行清理、矢量化和分类。但当预测情绪时,我只能得到0(表示否定)或4(否定)。我想要得到小数位数在-1和1之间的预测分数,以便更好地了解推文的积极和消极程度:#read in influential twitter users on stock market
twitter_users@[A-Za-z0-9_]+' # remove @ menti