69707172737475
public SmartChineseAnalyzer(boolean useDefaultStopWords) { if (useDefaultStopWords) { stopWords = loadStopWords(this.getClass().getResourceAsStream( "stopwords.txt")); } wordSegment = new WordSegmenter(); }
80818283848586
* @param stopWords * @see SmartChineseAnalyzer.loadStopWords(InputStream) */ public SmartChineseAnalyzer(Set<String> stopWords) { this.stopWords = stopWords; wordSegment = new WordSegmenter(); }