commonsense / luminoso

A visualizer for multi-dimensional semantic data
http://csc.media.mit.edu/analogyspace/luminoso
38 stars 8 forks source link

Crash when concept space is too sparse #2

Open sgt101 opened 13 years ago

sgt101 commented 13 years ago

Hi,

I think this is happening because my study is too sparse and nothing is being successfully extracted.

Some specific diagnostic error would be good as well as the dump.

Warning: Sorry, an internal error occurred. Could you please send the authors the text below and a brief note about what you were doing? Thanks! Traceback (most recent call last): File "/home/sgt101/luminoso/luminoso/window.py", line 301, in analyze results = self.study_dir.analyze() File "/home/sgt101/luminoso/luminoso/study.py", line 704, in analyze results = study.analyze() File "/home/sgt101/luminoso/luminoso/study.py", line 432, in analyze docs, projections, Sigma = self.get_eigenstuff() File "/home/sgt101/luminoso/luminoso/study.py", line 310, in get_eigenstuff theblend, study_concepts = self.get_blend() File "/home/sgt101/luminoso/luminoso/study.py", line 246, in get_blend return self.get_assoc_blend() File "/home/sgt101/luminoso/luminoso/study.py", line 289, in get_assoc_blend doc_matrix = self.get_documents_assoc() File "/home/sgt101/luminoso/luminoso/study.py", line 242, in get_documents_assoc return divisi2.SparseMatrix.square_from_named_entries(entries).squish() File "/usr/local/lib/python2.6/dist-packages/csc/divisi2/sparse.py", line 449, in square_from_named_entries return SparseMatrix.square_from_named_lists(_zip(_tuples)) TypeError: square_from_named_lists() takes at least 3 arguments (0 given)

kcarnold commented 13 years ago

The problem was that no concepts were above the cutoff. I've patched the symptom in both Luminoso and Divisi2, but the real solution is to make the cutoff relative, which will have to wait.

sgt101 commented 13 years ago

It's an easy work around when you know how - just drop your concept threshold or enrich your data to generate some concepts.