|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttml.vectorspace.SemanticSpace
public class SemanticSpace
This class is a Vector Space Model representation of a group of documents or
Corpus
constructed using Latent Semantic Indexing, it contains a term
by document matrix for the Corpus
.
Some of the LSI steps are performed by this class:
Several Operation
s can be performed on a SemanticSpace
. Each
one contains a list of results, that can be read from the operation in
Object[][], HTML and Graphic format for human consumption.
Constructor Summary | |
---|---|
SemanticSpace(Corpus sourceCorpus)
Creates a new SemanticSpace from a Corpus . |
Method Summary | |
---|---|
void |
calculate()
Calculates the term by doc matrix for the SemanticSpace based on
the documents in the Corpus . |
java.lang.Object |
clone()
|
Corpus |
getCorpus()
|
int |
getDimensionsKept()
|
java.lang.String |
getName()
Gets the name of the SemanticSpace |
long |
getProcessingTime()
The time that the SemanticSpace took to calculate its basic
operations |
Jama.Matrix |
getSk()
|
Jama.Matrix |
getTermsDocuments()
|
long |
getTimeToCalculate()
|
Jama.Matrix |
getUk()
|
Jama.Matrix |
getVk()
|
boolean |
isCalculated()
|
void |
setCorpus(Corpus corpus)
|
void |
setVk(Jama.Matrix vk)
|
java.lang.String |
toString()
Overrides the default toString method and replaces it with the SemanticSpace name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SemanticSpace(Corpus sourceCorpus)
SemanticSpace
from a Corpus
.
sourceCorpus
- the Corpus
for the SemanticSpace
Method Detail |
---|
public boolean isCalculated()
public void calculate() throws NotEnoughTermsInCorpusException
SemanticSpace
based on
the documents in the Corpus
.
NotEnoughTermsInCorpusException
TermWeightingException
NormalizationException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public Corpus getCorpus()
Corpus
that a SemanticSpace
usespublic int getDimensionsKept()
public java.lang.String getName()
SemanticSpace
public long getProcessingTime()
SemanticSpace
took to calculate its basic
operations
public Jama.Matrix getSk()
public Jama.Matrix getTermsDocuments()
public long getTimeToCalculate()
public Jama.Matrix getUk()
public Jama.Matrix getVk()
public void setCorpus(Corpus corpus)
public void setVk(Jama.Matrix vk)
vk
- the vk to setpublic java.lang.String toString()
SemanticSpace
name
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |