【发布时间】:2019-02-21 18:23:14
【问题描述】:
对于电影评论数据集,我正在创建一个朴素贝叶斯多项式模型。现在在训练数据集中,每种类型都有评论。因此,与其为电影评论数据集创建一个通用模型——忽略类型特征,我如何训练一个模型,该模型除了与评论中出现的单词相关联的 tf-idf 之外,还考虑了类型特征。我需要为每种类型创建一个模型,还是可以将其合并到一个模型中?
Training Dataset Sample:
genre, review, classification
Romantic, The movie was really emotional and touched my heart!, Positive
Action, It was a thrilling movie, Positive
....
Test Data Set:
Genre, review
Action, The movie sucked bigtime. The action sequences didnt fit into the plot very well
【问题讨论】:
标签: python machine-learning scikit-learn classification naivebayes