Skip to content

Commit d705ffa

Browse files
author
ysc
committed
MaxNgramScore
1 parent f1c23fe commit d705ffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deep-qa/src/main/java/org/apdplat/qa/parser/WordParser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ public class WordParser {
6262
* @return 分词结果
6363
*/
6464
public static List<Word> parseWithoutStopWords(String str) {
65-
List<Word> words = WordSegmenter.seg(str, SegmentationAlgorithm.FullSegmentation);
65+
List<Word> words = WordSegmenter.seg(str, SegmentationAlgorithm.MaxNgramScore);
6666
//词性标注
6767
PartOfSpeechTagging.process(words);
6868
return words;
6969
}
7070
public static List<Word> parse(String str) {
71-
List<Word> words = WordSegmenter.segWithStopWords(str, SegmentationAlgorithm.FullSegmentation);
71+
List<Word> words = WordSegmenter.segWithStopWords(str, SegmentationAlgorithm.MaxNgramScore);
7272
//词性标注
7373
PartOfSpeechTagging.process(words);
7474
return words;

0 commit comments

Comments
 (0)