1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| ....E..F
======================================================================
ERROR: test_search (tests.TestLSA)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 74, in test_search
search([documents[-1]], documents)
File "lsa.py", line 231, in search
reduced_matrix = matrix_reduce_sigma(freq_matrix, dimensions=1)
File "lsa.py", line 180, in matrix_reduce_sigma
cols = sigma.shape[1]
IndexError: tuple index out of range
-------------------- >> begin captured stdout << ---------------------
document
[u" Wherefore reioyce ? What Conquest brings he home ? What Tributaries follow him to Rome , To grace in Captiue bonds his Chariot Wheeles ? You Blockes , you stones , you worse then senslesse things : O you hard hearts , you cruell men of Rome , Knew you not Pompey many a time and oft ? Haue you climb ' d vp to Walles and Battlements , To Towres a"]
reduced
--------------------- >> end captured stdout << ----------------------
======================================================================
FAIL: test_instantiation (tests.TextCoocurrenceMatrix)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests.py", line 36, in test_instantiation
self.assertEquals(len(matrix.keywords()),53)
AssertionError: 146 != 53
----------------------------------------------------------------------
Ran 8 tests in 21.137s
FAILED (errors=1, failures=1) |
Partager