/* This is for debugging. */ public static void main(String[] args) throws Exception { TokenFilter st = new PorterStemmer(null, null); String str; for (int i = 0; i < args.length; ++i) { str = st.apply(args[i]); if (str != null) System.out.println(str); } }