#96·snownlp

关于情感分析训练的一些建议

作者: Koado创建于 2018年10月19日更新于 2022年9月13日

First, I downloaded the hotel review data from the Internet, which has been divided into pos.txt and neg.txt, each with 3000 entries. We can just put them together (I recommend that you add the neg.txt and pos.txt files provided in the sentiment directory to the training set, the larger the training set, the wider the range, and the better the training effect). Then, we can train the model. The code is as follows:

内容来源: isnowfy/snownlp