I am trying to infer the topics of a document based on my trained topic model by MALLET. I am using the following command in the mallet dir
./mallet infer-topics --inferencer topic-model --input indata.mallet --output-doc-topics infered_docs
but it gets stuck in cast exception:
java.lang.ClassCastException: cc.mallet.topics.ParallelTopicModel cannot be cast to cc.mallet.topics.TopicInferencer
how can I solve this?