Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class not find #66

Open
hbthien opened this issue May 10, 2015 · 5 comments
Open

class not find #66

hbthien opened this issue May 10, 2015 · 5 comments

Comments

@hbthien
Copy link

hbthien commented May 10, 2015

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
Copy link

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

@niveditakatakam
Copy link

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

@davidjurgens
Copy link
Collaborator

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 [email protected]
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
#66 (comment)

@niveditakatakam
Copy link

hey David,

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

thank you

@davidjurgens
Copy link
Collaborator

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 [email protected]
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
#66 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants