Failed
dariah_topics.postprocessing._show_lda_topics (from nosetests)
Failing for the past 2 builds
(Since Failed )
Error Message
Failed doctest test for dariah_topics.postprocessing._show_lda_topics File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 290, in _show_lda_topics ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 310, in dariah_topics.postprocessing._show_lda_topics Failed example: doc_term_matrix = create_doc_term_matrix(corpus, ['doc1', 'doc2']) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[2]>", line 1, in <module> doc_term_matrix = create_doc_term_matrix(corpus, ['doc1', 'doc2']) NameError: name 'create_doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 311, in dariah_topics.postprocessing._show_lda_topics Failed example: vocab = doc_term_matrix.columns Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[3]>", line 1, in <module> vocab = doc_term_matrix.columns NameError: name 'doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 313, in dariah_topics.postprocessing._show_lda_topics Failed example: model.fit(doc_term_matrix.as_matrix().astype(int)) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[5]>", line 1, in <module> model.fit(doc_term_matrix.as_matrix().astype(int)) NameError: name 'doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 314, in dariah_topics.postprocessing._show_lda_topics Failed example: df = lda2dataframe(model, vocab, num_keys=1) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[6]>", line 1, in <module> df = lda2dataframe(model, vocab, num_keys=1) NameError: name 'lda2dataframe' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 315, in dariah_topics.postprocessing._show_lda_topics Failed example: len(df) == 1 Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[7]>", line 1, in <module> len(df) == 1 NameError: name 'df' is not defined
Stacktrace
Traceback (most recent call last): File "/usr/lib/python3.5/unittest/case.py", line 59, in testPartExecutor yield File "/usr/lib/python3.5/unittest/case.py", line 601, in run testMethod() File "/usr/lib/python3.5/doctest.py", line 2190, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for dariah_topics.postprocessing._show_lda_topics File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 290, in _show_lda_topics ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 310, in dariah_topics.postprocessing._show_lda_topics Failed example: doc_term_matrix = create_doc_term_matrix(corpus, ['doc1', 'doc2']) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[2]>", line 1, in <module> doc_term_matrix = create_doc_term_matrix(corpus, ['doc1', 'doc2']) NameError: name 'create_doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 311, in dariah_topics.postprocessing._show_lda_topics Failed example: vocab = doc_term_matrix.columns Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[3]>", line 1, in <module> vocab = doc_term_matrix.columns NameError: name 'doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 313, in dariah_topics.postprocessing._show_lda_topics Failed example: model.fit(doc_term_matrix.as_matrix().astype(int)) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[5]>", line 1, in <module> model.fit(doc_term_matrix.as_matrix().astype(int)) NameError: name 'doc_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 314, in dariah_topics.postprocessing._show_lda_topics Failed example: df = lda2dataframe(model, vocab, num_keys=1) Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[6]>", line 1, in <module> df = lda2dataframe(model, vocab, num_keys=1) NameError: name 'lda2dataframe' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 315, in dariah_topics.postprocessing._show_lda_topics Failed example: len(df) == 1 Exception raised: Traceback (most recent call last): File "/usr/lib/python3.5/doctest.py", line 1321, in __run compileflags, 1), test.globs) File "<doctest dariah_topics.postprocessing._show_lda_topics[7]>", line 1, in <module> len(df) == 1 NameError: name 'df' is not defined