throws FileNotFoundException, IOException {
System.err.println("Building dictionary");
NGramModel ngramModel = new NGramModel();
DataStream data = new opennlp.maxent.PlainTextByLineDataStream(new java.io.FileReader(inFile));
while(data.hasNext()) {
String tagStr = (String) data.nextToken();
String[] tt = tagStr.split(" ");
String[] words = new String[tt.length];
for (int wi=0;wi<words.length;wi++) {
words[wi] =
tt[wi].substring(0,tt[wi].lastIndexOf('_'));