throw new IOException("You must specify both a word-level dict and a POS dict.");
}
XMLWordDictionaryReader wdr = new XMLWordDictionaryReader(new File(wdictPath));
XMLPOSDictionaryReader pdr = new XMLPOSDictionaryReader(new File(posdictPath));
STTaggerWordDictionary wdict = wdr.read();
STTaggerPOSDictionary posdict = pdr.read();
hypertagger.wdict = wdict;
hypertagger.posdict = posdict;
String kstring = opts.get("dictk");
if(kstring != null)
hypertagger.dictK = Integer.parseInt(kstring);