4c0737ab80aa30b92ed9f9d7fecd399a126a17d2,gensim/models/coherencemodel.py,CoherenceModel,topics,#CoherenceModel#Any#,235
Before Change
elif topics is not None:
new_topics = []
for topic in topics:
topic_token_ids = np.array([self.dictionary.token2id[token] for token in topic])
new_topics.append(topic_token_ids)
self._update_accumulator(new_topics)
After Change
logger.warning(
"The currently set model "%s" may be inconsistent with the newly set topics",
self.model)
elif self.model is not No ne:
new_topics = self._get_topics()
logger.debug("Setting topics to those of the model: %s", self.model)
else:
new_topics = None
self._update_accumulator(new_topics)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: RaRe-Technologies/gensim
Commit Name: 4c0737ab80aa30b92ed9f9d7fecd399a126a17d2
Time: 2017-09-18
Author: macks22@users.noreply.github.com
File Name: gensim/models/coherencemodel.py
Class Name: CoherenceModel
Method Name: topics
Project Name: senarvi/theanolm
Commit Name: b73fc0c21ea55c7d3357fbf633944e1e67db8bdf
Time: 2016-07-31
Author: seppo.git@marjaniemi.com
File Name: theanolm/scoring/latticedecoder.py
Class Name: LatticeDecoder
Method Name: decode
Project Name: streamlit/streamlit
Commit Name: 047f6bd4873ffcab21c6035c9fffe5e74e914727
Time: 2020-04-01
Author: thiago@streamlit.io
File Name: lib/streamlit/server/Server.py
Class Name: Server
Method Name: _create_report_session