Skip to content

Failed

dariah_topics.preprocessing.read_from_csv (from nosetests)

Failing for the past 2 builds (Since Failed#166 )
Took 2.5 sec.

Error Message

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

----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 188, in dariah_topics.preprocessing.read_from_csv
Failed example:
    list(read_from_csv(doclist))[0][:4] # doctest: +NORMALIZE_WHITESPACE
Expected:
               ParagraphId  TokenId    Lemma CPOS NamedEntity
    0            0        0        a  ART           _
    1            0        1  scandal   NP           _
    2            0        2       in   PP           _
    3            0        3  bohemia   NP           _
Got:
       ParagraphId  TokenId   Lemma  CPOS NamedEntity
    0            0        0  eureka    NP           _
    1            0        1       :  PUNC           _
    2            0        2       a   ART           _
    3            0        3   prose    NP           _

-------------------- >> begin captured logging << --------------------
preprocessing: INFO: Accessing CSV documents ...
preprocessing: INFO: Creating document list from CSV files ...
preprocessing: INFO: Accessing CSV documents ...
--------------------- >> 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.read_from_csv
  File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 155, in read_from_csv

----------------------------------------------------------------------
File "/mnt/data/jenkins/workspace/DARIAH-Topics/dariah_topics/preprocessing.py", line 188, in dariah_topics.preprocessing.read_from_csv
Failed example:
    list(read_from_csv(doclist))[0][:4] # doctest: +NORMALIZE_WHITESPACE
Expected:
               ParagraphId  TokenId    Lemma CPOS NamedEntity
    0            0        0        a  ART           _
    1            0        1  scandal   NP           _
    2            0        2       in   PP           _
    3            0        3  bohemia   NP           _
Got:
       ParagraphId  TokenId   Lemma  CPOS NamedEntity
    0            0        0  eureka    NP           _
    1            0        1       :  PUNC           _
    2            0        2       a   ART           _
    3            0        3   prose    NP           _

-------------------- >> begin captured logging << --------------------
preprocessing: INFO: Accessing CSV documents ...
preprocessing: INFO: Creating document list from CSV files ...
preprocessing: INFO: Accessing CSV documents ...
--------------------- >> end captured logging << ---------------------