|
|
@ -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;
|
|
|
|