String binaryLexCountFilename = outputDirName + File.separator + "lexicon.counts";
if (logger.isLoggable(Level.INFO)) logger.info("Writing binary lexicon counts to disk at " + binaryLexCountFilename);
// BinaryOut lexCountOut = new BinaryOut(binaryLexCountFilename);
ObjectOutput lexCountOut = new ObjectOutputStream(new FileOutputStream(binaryLexCountFilename));
lexProbs.writeExternal(lexCountOut);
lexCountOut.close();
String s = lexProbs.toString();
if (logger.isLoggable(Level.INFO)) logger.info("Writing lexprobs at " + lexprobsFilename);