Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在将推文分类为正面或负面意见。我听说朴素贝叶斯分类器通常用于分类,我想为我的项目编写自己的朴素贝叶斯分类器。因为,我是数据挖掘的新手,而且朴素贝叶斯分类器无法理解什么以及如何使用朴素贝叶斯。谁能帮我解决??
首先,分类器需要用已经分类的数据进行训练,越多越好;例如,您需要 100 条正面推文和另外 100 条负面推文。
如果您使用的是 python,您可以从NLTK及其庞大的语料库开始
另请参阅此问题以获取实际示例。