Using Jama with Latent Semantic Analysis

32 views
Skip to first unread message

scorpf...@gmail.com

unread,
Oct 19, 2014, 8:10:31 AM10/19/14
to s-spac...@googlegroups.com
Hi,

Thanks for this wonderful library. I am using this library to conduct Latent Semantic Analysis. For now i am using SVDLIBC like this and its working fine

LatentSemanticAnalysis lsa = new LatentSemanticAnalysis(true, 2, new TfIdfTransform(), new SingularValueDecompositionLibC(),false, new StringBasisMapping());

The problem is SVDLIBC isnt available on Windows. Hence i decided to use JAMA which is supported by S-Space according to https://github.com/fozziethebeat/S-Space/wiki/SingularValueDecomposition. However when i try to instantiate a LSA class, it seems it doesnt accept the  SingularValueDecomposition class from jama

My code:

import Jama.SingularValueDecomposition; 
 <ommitted code>
LatentSemanticAnalysis lsa = new LatentSemanticAnalysis(true, 2, new TfIdfTransform(), new SingularValueDecomposition(),false, new StringBasisMapping());

So is there any other way to use JAMA on S-Space?


Thanks
kype shaf
 

David Jurgens

unread,
Oct 19, 2014, 10:56:06 PM10/19/14
to s-spac...@googlegroups.com
Hi Kype,

  We ended up not supporting JAMA because it really does not scale to the matrices needed by LSA.  The JAMA SVD quickly runs out of memory, which cases problems for most people.  I think people have successfully gotten SVDLIBC to install on Windows, but I am not sure what that requires you to do.

  Do you have a specific need for running LSA on Windows with JAMA?

  Thanks,
  David

--

---
You received this message because you are subscribed to the Google Groups "S-Space Package Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to s-space-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kype shaff

unread,
Oct 19, 2014, 11:05:03 PM10/19/14
to s-spac...@googlegroups.com
Hi David,

Well i was looking for a solution to using your library on a Windows machine, as my web application which uses your library is running on Windows. So since SVDLIBC isnt on windows, i decided to use JAMA, but now JAMA isnt supported so then ill look for some other ways to run your library on Windows



Thanks
kype shaf
Reply all
Reply to author
Forward
0 new messages