if (outputStateInterval.value != 0) {
lda.setSaveState(outputStateInterval.value, stateFile.value);
}
lda.estimate();
//save the model, we need typeTopicCounts and tokensPerTopic for empirical likelihood
lda.write(new File (inputFile.value + ".model"));
if (topicKeysFile.value != null) {
lda.printTopWords(new File(topicKeysFile.value), topWords.value, false);