数字营销实训算法第6-3轮修改

master
@t2652009480
parent 9e603657eb
commit fdfb7a1479

@ -158,9 +158,9 @@ public class StuDigitalMarketingModelServiceImpl implements StuDigitalMarketingM
// 创建词汇表 // 创建词汇表
Map<String, Integer> wordCount = new HashMap<>(); Map<String, Integer> wordCount = new HashMap<>();
// 读取停用词 // 读取停用词
// Set<String> stopwords = this.loadStopwords("/usr/local/tianzeProject/digitalMarketing/jarAndDockerFile/停用词.txt"); Set<String> stopwords = this.loadStopwords("/usr/local/tianzeProject/digitalMarketing/jarAndDockerFile/停用词.txt");
Set<String> stopwords = this.loadStopwords("D:\\project\\digital_marketing\\src\\main\\resources\\words\\停用词.txt"); // Set<String> stopwords = this.loadStopwords("D:\\project\\digital_marketing\\src\\main\\resources\\words\\停用词.txt");
// 统计词频 // 统计词频
int count = 0; int count = 0;

Loading…
Cancel
Save