check corpus split
Browse files
app.py
CHANGED
@@ -131,7 +131,6 @@ def split_corpus(corpus, n):
|
|
131 |
for i in range(0, len(corpus), n):
|
132 |
corpus_split = corpus
|
133 |
yield corpus_split[i:i + n]
|
134 |
-
return corpus_split
|
135 |
|
136 |
def compute_coherence_values_base_lda(dictionary, corpus, texts, limit, coherence, start=2, step=1):
|
137 |
coherence_values = []
|
@@ -264,6 +263,7 @@ def full_lda(df):
|
|
264 |
print('split corpus')
|
265 |
corpus_split = split_corpus(corpus_split, 5)
|
266 |
print('after split corpus')
|
|
|
267 |
|
268 |
global coherence
|
269 |
coherence = 'c_v'
|
|
|
131 |
for i in range(0, len(corpus), n):
|
132 |
corpus_split = corpus
|
133 |
yield corpus_split[i:i + n]
|
|
|
134 |
|
135 |
def compute_coherence_values_base_lda(dictionary, corpus, texts, limit, coherence, start=2, step=1):
|
136 |
coherence_values = []
|
|
|
263 |
print('split corpus')
|
264 |
corpus_split = split_corpus(corpus_split, 5)
|
265 |
print('after split corpus')
|
266 |
+
print(corpus_split)
|
267 |
|
268 |
global coherence
|
269 |
coherence = 'c_v'
|