Skip to content

Regression

dariah_topics.preprocessing.remove_features (from nosetests)

Failing for the past 1 build (Since Failed#270 )
Took 3 ms.

Error Message

Failed doctest test for dariah_topics.preprocessing.remove_features
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 698, in remove_features

----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 728, in dariah_topics.preprocessing.remove_features
Failed example:
    len(remove_features(sparse_bow, features, id_types))
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.preprocessing.remove_features[6]>", line 1, in <module>
        len(remove_features(sparse_bow, features, id_types))
      File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 736, in remove_features
        clean_sparse_bow = sparse_bow.drop([id_types[word] for word in stoplist_applied], level="token_id")
    NameError: name 'sparse_bow' is not defined

-------------------- >> begin captured logging << --------------------
preprocessing: INFO: Removing features ...
--------------------- >> end captured logging << ---------------------

Stacktrace

  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()))
Failed doctest test for dariah_topics.preprocessing.remove_features
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 698, in remove_features

----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 728, in dariah_topics.preprocessing.remove_features
Failed example:
    len(remove_features(sparse_bow, features, id_types))
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.preprocessing.remove_features[6]>", line 1, in <module>
        len(remove_features(sparse_bow, features, id_types))
      File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 736, in remove_features
        clean_sparse_bow = sparse_bow.drop([id_types[word] for word in stoplist_applied], level="token_id")
    NameError: name 'sparse_bow' is not defined

-------------------- >> begin captured logging << --------------------
preprocessing: INFO: Removing features ...
--------------------- >> end captured logging << ---------------------