Closed rajesh8871 closed 4 years ago
Mallet implements a randomized algorithm, so you should expect to get similar but not identical results. Setting the random seed only hides this behavior, it doesn't make the one result you get any more reliable. I suspect that the random seed is not being propagated to the two worker threads in this example -- in the command line version results are identical across runs with the same seed
am using mallet for topic modeling of data. All things are good but the topics getting generated are inconsistent. Its generating weightage every time different on running the model on the same data I have tried to set the seed but still it's not working as expected. Apart from this, I want to get the list of documents related to each topic, so that I can check which documents if related to which topic.
package topicModelling; import cc.mallet.util.; import cc.mallet.types.; import cc.mallet.pipe.; import cc.mallet.pipe.iterator.; import cc.mallet.topics.*;
import java.util.; import java.util.regex.; import java.io.*;
public class TopicModel {
}