Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Severin Simmler committed Apr 28, 2018
1 parent 39d6b9d commit fe3100f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/modeling.py
Expand Up @@ -87,7 +87,7 @@ def workflow(tempdir, archive_dir):
cleaning = "removed the <b>{0} most frequent words</b>, based on a threshold".format(len(stopwords))
except KeyError:
stopwords = user_input['stopwords'].read().decode('utf-8')
stopwords = dariah_topics.preprocessing.tokenize(stopwords)
stopwords = list(dariah_topics.preprocessing.tokenize(stopwords))
cleaning = "removed the <b>{0} most frequent words</b>, based on an external stopwords list".format(len(stopwords))
hapax_legomena = dariah_topics.preprocessing.find_hapax_legomena(document_term_matrix)
features = set(stopwords).union(hapax_legomena)
Expand Down

0 comments on commit fe3100f

Please sign in to comment.