Apparently there's a silent error that's happening in the background. After turning on the logging, I am encountering following error:
```
2022-12-04 18:29:56,249 : ERROR : worker encountered unexpected exception
Traceback (most recent call last):
File "/home/muradb/school/hss407/venv/lib/python3.10/site-packages/gensim/topic_coherence/text_analysis.py", line 561, in run
self._run()
File "/home/muradb/school/hss407/venv/lib/python3.10/site-packages/gensim/topic_coherence/text_analysis.py", line 581, in _run
self.accumulator.partial_accumulate(docs, self.window_size)
File "/home/muradb/school/hss407/venv/lib/python3.10/site-packages/gensim/topic_coherence/text_analysis.py", line 353, in partial_accumulate
super(WordOccurrenceAccumulator, self).accumulate(texts, window_size)
File "/home/muradb/school/hss407/venv/lib/python3.10/site-packages/gensim/topic_coherence/text_analysis.py", line 296, in accumulate
self.analyze_text(virtual_document, doc_num)
File "/home/muradb/school/hss407/venv/lib/python3.10/site-packages/gensim/topic_coherence/text_analysis.py", line 360, in analyze_text
self._slide_window(window, doc_num)
File "/home/muradb/school/hss407/venv/lib/python3.10/site-packages/gensim/topic_coherence/text_analysis.py", line 375, in _slide_window
self._token_at_edge = window[0]
IndexError: index 0 is out of bounds for axis 0 with size 0
```
I am not sure what is happening. What I am doing in the code:
```
num_keywords = 15
num_topics = list(range(4, 101, 2))
LDA_models = {}
for i in range(4, 101, 2):
LDA_models[i] = LdaMulticore.load(f"models/{i}_multi_symm.gensim")
coherences = []
for i in num_topics:
model = CoherenceModel(model=LDA_models[i], texts=data_lemmatized, dictionary=dirichlet_dict, coherence="c_v")
coherences.append(model.get_coherence())
```
The files `models/{i}_multi_symm.gensim` are the saved object `LdaMulticore` files that I previously trained with
```
lda_model = gensim.models.LdaMulticore(corpus=bow_corpus,
id2word=dirichlet_dict,
num_topics=i,
random_state=42,
chunksize=len(bow_corpus),
passes=1,
workers=15,
)
```
I have no idea how to debug this, if you could help, I would be very glad.
Best regards,
Murad Bashirov