Exemple #1
0
 static StopAnalyzer()
 {
     {
         System.String[] stopWords = new System.String[] { "a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with" };
         CharArraySet    stopSet   = new CharArraySet(stopWords.Length, false);
         stopSet.AddAll(new System.Collections.ArrayList(stopWords));
         ENGLISH_STOP_WORDS_SET = CharArraySet.UnmodifiableSet(stopSet);
     }
 }