fozziethebeat / S-Space

The S-Space repsitory, from the AIrhead-Research group
GNU General Public License v2.0
203 stars 106 forks source link

class not find #66

Open hbthien opened 9 years ago

hbthien commented 9 years ago

Hi all,

I tried to test the LSA class. From the instruction of Getting Started wiki page, I run the command from the S-Space directory: user@machine$ java -cp classes edu.ucla.sspace.mains.LSAMain

But I received an error: Error: Could not find or load main class edu.ucla.sspace.mains.LSAMain

In addition, when I run the LSAMain.java, I got this:

Saving matrix using edu.ucla.sspace.matrix.SvdlibcSparseBinaryMatrixBuilder@12edcd21 Exception in thread "WorkerThread-1" java.util.NoSuchElementException at edu.ucla.sspace.util.CombinedIterator.next(CombinedIterator.java:119) at edu.ucla.sspace.mains.GenericMain$1.run(GenericMain.java:582) at edu.ucla.sspace.util.WorkQueue$CountingRunnable.run(WorkQueue.java:361) at edu.ucla.sspace.util.WorkerThread.run(WorkerThread.java:110) Saw 16 terms, 15 unique Saw 17 terms, 16 unique Saw 15 terms, 15 unique edu.ucla.sspace.lsa.LatentSemanticAnalysis@33918ac4 processing doc edu.ucla.sspace.util.SparseIntHashArray@20abfa41 edu.ucla.sspace.lsa.LatentSemanticAnalysis@33918ac4 processing doc edu.ucla.sspace.util.SparseIntHashArray@48b45e8f edu.ucla.sspace.lsa.LatentSemanticAnalysis@33918ac4 processing doc edu.ucla.sspace.util.SparseIntHashArray@3d5662c6 May 11, 2015 1:52:29 PM edu.ucla.sspace.common.GenericTermDocumentVectorSpace processSpace INFO: performing log-entropy transform May 11, 2015 1:52:29 PM edu.ucla.sspace.matrix.LogEntropyTransform$LogEntropyGlobalTransform INFO: Computing the total row counts May 11, 2015 1:52:29 PM edu.ucla.sspace.matrix.LogEntropyTransform$LogEntropyGlobalTransform INFO: Computing the entropy of each row May 11, 2015 1:52:29 PM edu.ucla.sspace.matrix.LogEntropyTransform$LogEntropyGlobalTransform INFO: Scaling the entropy of the rows May 11, 2015 1:52:29 PM edu.ucla.sspace.lsa.LatentSemanticAnalysis processSpace INFO: reducing to 2 dimensions output File: my-lsa-output.sspace

Even it produces an output file, it has an error Exception in thread "WorkerThread-1" java.util.NoSuchElementException

Could you please tell me how to fix this error? Thank you.

songqi1990 commented 9 years ago

Hi, you can go to the "target " folder and rerun "java -cp classes edu.ucla.sspace.mains.LSAMain"

niveditakatakam commented 8 years ago

same problem as that of hbthein but the target file is not created !!

davidjurgens commented 8 years ago

Did you run "mvn compile" or "mvn package" first to get all the code compiled? One of those two steps is necessary for the target directory to be created.

Thanks, David

On Thu, Apr 14, 2016 at 11:28 PM, niveditakatakam notifications@github.com wrote:

same problem as that of hbthein but the target file is not created !!

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/fozziethebeat/S-Space/issues/66#issuecomment-210304464

niveditakatakam commented 8 years ago

hey David,

where to give that command ?? and is it necessary to create any environment variable

thank you

davidjurgens commented 8 years ago

You need to run that from the command line in the directory where you cloned the github repository.

You might also be able import the maven pom.xml into an environment like Netbeans or Eclipse, which can build the classes. However, I have never tried this and am not sure how it works.

On Thu, Apr 14, 2016 at 11:49 PM, niveditakatakam notifications@github.com wrote:

hey David,

where to give that command ?? and is it necessary to create any environment variable

thank you

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/fozziethebeat/S-Space/issues/66#issuecomment-210311420