package NaviveBayesClassify;spa
/**.net
* 停用词处理器get
* it
* @author class
* List
*/static
public class StopWordsHandler {top
private static String stopWordsList[] = { "的", "咱们", "要", "本身", "之", "将", "“", "”", ",", "(", ")", "后", "应", "到",word
"某", "后", "个", "是", "位", "新", "一", "两", "在", "中", "或", "有", "更", "好", "" };// 经常使用停用词vi
public static boolean IsStopWord(String word) {
for (int i = 0; i < stopWordsList.length; ++i) {
if (word.equalsIgnoreCase(stopWordsList[i]))
return true;
}
return false;
}
}