MarMont commited on
Commit
4dfaac6
1 Parent(s): fb44dc9

check corpus split

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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'