@PublicationReference(author={"Scott Deerwester","Susan T. Dumais","George W. Furnas","Thomas K. Landauer","Richard Harshman"},title="Indexing by Latent Semantic Analysis",year=1990,type=Journal,publication="Journal of the American Society for Information Science",pages={391,407},url="http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.108.8490") @PublicationReference(author={"Thomas K. Landauer","Peter W. Foltz","Darrell Laham"},title="An Introduction to Latent Semantic Analysis",year=1998,type=Journal,publication="Discourse Processes",pages={259,284},url="http://lsa.colorado.edu/papers/dp1.LSAintro.pdf") @PublicationReference(author="Wikipedia",title="Latent semantic analysis",year=2009,type=WebPage,url="http://en.wikipedia.org/wiki/Latent_semantic_analysis") public class LatentSemanticAnalysis extends AbstractCloneableSerializable implements BatchLearner<java.util.Collection<? extends Vectorizable>,LatentSemanticAnalysis.Transform>
Modifier and Type | Class and Description |
---|---|
static class |
LatentSemanticAnalysis.Transform
The result from doing latent semantic analysis (LSA).
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_REQUESTED_RANK
The default requested rank is 10.
|
protected int |
requestedRank
The rank requested for the result LSA.
|
Constructor and Description |
---|
LatentSemanticAnalysis()
Creates a new
LatentSemanticAnalysis with default parameters. |
LatentSemanticAnalysis(int requestedRank)
Creates a new
LatentSemanticAnalysis with the given parameters. |
Modifier and Type | Method and Description |
---|---|
int |
getRequestedRank()
Gets the requested rank for the analysis.
|
LatentSemanticAnalysis.Transform |
learn(java.util.Collection<? extends Vectorizable> documents)
The
learn method creates an object of ResultType using
data of type DataType , using some form of "learning" algorithm. |
void |
setRequestedRank(int requestedRank)
Sets the requested rank of the analysis.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
public static final int DEFAULT_REQUESTED_RANK
protected int requestedRank
public LatentSemanticAnalysis()
LatentSemanticAnalysis
with default parameters.public LatentSemanticAnalysis(int requestedRank)
LatentSemanticAnalysis
with the given parameters.requestedRank
- The requested rank to create results of.public LatentSemanticAnalysis.Transform learn(java.util.Collection<? extends Vectorizable> documents)
BatchLearner
learn
method creates an object of ResultType
using
data of type DataType
, using some form of "learning" algorithm.learn
in interface BatchLearner<java.util.Collection<? extends Vectorizable>,LatentSemanticAnalysis.Transform>
documents
- The data that the learning algorithm will use to create an
object of ResultType
.public int getRequestedRank()
public void setRequestedRank(int requestedRank)
requestedRank
- The requested rank of the analysis. Must be positive.