MarMont commited on
Commit
136249e
1 Parent(s): 80316dd

coherence averages debug

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -274,12 +274,16 @@ def full_lda(df):
274
  training_corpus = corpus_split
275
  training_corpus.remove(training_corpus[i])
276
  # print(training_corpus[i])
277
- model_list, coherence_values = compute_coherence_values_base_lda(dictionary=id2word, corpus=training_corpus,
 
 
278
  texts=df['lemma_tokens'],
279
  start=2,
280
  limit=10,
281
  step=1,
282
- coherence=coherence)
 
 
283
  for j in range(len(coherence_values)):
284
  coherence_averages[j] += coherence_values[j]
285
 
 
274
  training_corpus = corpus_split
275
  training_corpus.remove(training_corpus[i])
276
  # print(training_corpus[i])
277
+ print(training_corpus)
278
+ model_list, coherence_values = compute_coherence_values_base_lda(dictionary=id2word,
279
+ corpus=training_corpus,
280
  texts=df['lemma_tokens'],
281
  start=2,
282
  limit=10,
283
  step=1,
284
+ coherence='c_v')
285
+ print(model_list + str(i))
286
+ print(coherence_values + str(i))
287
  for j in range(len(coherence_values)):
288
  coherence_averages[j] += coherence_values[j]
289