more debugging
Browse files
app.py
CHANGED
@@ -260,6 +260,7 @@ def full_lda(df):
|
|
260 |
corpus_og = [id2word.doc2bow(d) for d in df['lemma_tokens']]
|
261 |
|
262 |
corpus_split = corpus
|
|
|
263 |
split_corpus(corpus_split, 5)
|
264 |
|
265 |
global coherence
|
@@ -279,9 +280,6 @@ def full_lda(df):
|
|
279 |
for j in range(len(coherence_values)):
|
280 |
coherence_averages[j] += coherence_values[j]
|
281 |
|
282 |
-
limit = 10; start = 2; step = 1;
|
283 |
-
x = range(start, limit, step)
|
284 |
-
|
285 |
coherence_averages = [x / 5 for x in coherence_averages]
|
286 |
|
287 |
if coherence == 'c_v':
|
|
|
260 |
corpus_og = [id2word.doc2bow(d) for d in df['lemma_tokens']]
|
261 |
|
262 |
corpus_split = corpus
|
263 |
+
print('split corpus')
|
264 |
split_corpus(corpus_split, 5)
|
265 |
|
266 |
global coherence
|
|
|
280 |
for j in range(len(coherence_values)):
|
281 |
coherence_averages[j] += coherence_values[j]
|
282 |
|
|
|
|
|
|
|
283 |
coherence_averages = [x / 5 for x in coherence_averages]
|
284 |
|
285 |
if coherence == 'c_v':
|