import java.io.*; import java.util.*; import morphology.parser.Analyzer; public class TestAnalyzer { public static void main(String[] args) throws IOException { Analyzer a = new Analyzer(new File("E:\\LU\\PhD\\NGSLT\\NLP\\Words\\Assignment\\lexicon\\db.conf")); String[] wf = args[0].split(","); for (int i = 0; i < wf.length; i++) { System.out.println("***" + wf[i] + "***"); ArrayList out = a.parse(wf[i]); if (out == null) { System.out.println("\tWord form not recognized."); continue; } Iterator it = out.iterator(); while (it.hasNext()) { System.out.println("\t" + (String)it.next()); } } } }