model=ldaModel(corpus=corpus、id2word=dictionary、num_topics=num_topics、random_state=None) 我绑定在没有random_state的情况下使用它,它起作用的函数,但是对于random_state,我得到了错误消息,表示LDA模型没有定义 def compute_coherence_values(字典、语料库、文本、限制、random_state、start=2、step=3): 代码...
'--num-threads %s --output-state %s --output-doc-topics %s --output-topic-keys %s '\ '--num-iterations %s --inferencer-filename %s --doc-topics-threshold %s' if self.random_seed != None: Contributor menshikh-iv on Aug 10, 2018 simply if self.random_seed enough Contributor...