File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
deep-qa/src/main/java/org/apdplat/qa/parser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ public class WordParser {
62
62
* @return 分词结果
63
63
*/
64
64
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 );
66
66
//词性标注
67
67
PartOfSpeechTagging .process (words );
68
68
return words ;
69
69
}
70
70
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 );
72
72
//词性标注
73
73
PartOfSpeechTagging .process (words );
74
74
return words ;
You can’t perform that action at this time.
0 commit comments