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;
}
}