Commit 7c149eb0 authored by alex yao's avatar alex yao

feat: 关键词提取

parent 9be410a5
...@@ -32,6 +32,9 @@ public class KeyWordCounter { ...@@ -32,6 +32,9 @@ public class KeyWordCounter {
while (matcher.find()) { while (matcher.find()) {
count++; count++;
} }
if (count == 0) {
continue;
}
resMap.put(keyword, count); resMap.put(keyword, count);
} }
Map<String, Integer> sortedMap = getSortedMap(resMap); Map<String, Integer> sortedMap = getSortedMap(resMap);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment