Failed
dariah_topics.postprocessing.save_document_term_matrix (from nosetests)
Failing for the past 1 build
(Since Failed )
Error Message
Failed doctest test for dariah_topics.postprocessing.save_document_term_matrix File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 40, in save_document_term_matrix ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 81, in dariah_topics.postprocessing.save_document_term_matrix Failed example: document_term_matrix = preprocessing.create_document_term_matrix(tokenized_corpus, document_labels) 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.save_document_term_matrix[5]>", line 1, in <module> document_term_matrix = preprocessing.create_document_term_matrix(tokenized_corpus, document_labels) AttributeError: module 'dariah_topics.preprocessing' has no attribute 'create_document_term_matrix' ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 82, in dariah_topics.postprocessing.save_document_term_matrix Failed example: save_document_term_matrix(document_term_matrix, path) 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.save_document_term_matrix[6]>", line 1, in <module> save_document_term_matrix(document_term_matrix, path) NameError: name 'document_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 83, in dariah_topics.postprocessing.save_document_term_matrix Failed example: preprocessing.read_document_term_matrix(os.path.join(path, 'document_term_matrix.csv')) #doctest +NORMALIZE_WHITESPACE 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.save_document_term_matrix[7]>", line 1, in <module> preprocessing.read_document_term_matrix(os.path.join(path, 'document_term_matrix.csv')) #doctest +NORMALIZE_WHITESPACE AttributeError: module 'dariah_topics.preprocessing' has no attribute 'read_document_term_matrix'
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.save_document_term_matrix File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 40, in save_document_term_matrix ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 81, in dariah_topics.postprocessing.save_document_term_matrix Failed example: document_term_matrix = preprocessing.create_document_term_matrix(tokenized_corpus, document_labels) 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.save_document_term_matrix[5]>", line 1, in <module> document_term_matrix = preprocessing.create_document_term_matrix(tokenized_corpus, document_labels) AttributeError: module 'dariah_topics.preprocessing' has no attribute 'create_document_term_matrix' ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 82, in dariah_topics.postprocessing.save_document_term_matrix Failed example: save_document_term_matrix(document_term_matrix, path) 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.save_document_term_matrix[6]>", line 1, in <module> save_document_term_matrix(document_term_matrix, path) NameError: name 'document_term_matrix' is not defined ---------------------------------------------------------------------- File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/postprocessing.py", line 83, in dariah_topics.postprocessing.save_document_term_matrix Failed example: preprocessing.read_document_term_matrix(os.path.join(path, 'document_term_matrix.csv')) #doctest +NORMALIZE_WHITESPACE 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.save_document_term_matrix[7]>", line 1, in <module> preprocessing.read_document_term_matrix(os.path.join(path, 'document_term_matrix.csv')) #doctest +NORMALIZE_WHITESPACE AttributeError: module 'dariah_topics.preprocessing' has no attribute 'read_document_term_matrix'