|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSemanticSpace
public class SemanticSpace
This class implements the integration with Matlab for TML
Constructor Summary | |
---|---|
SemanticSpace(java.lang.String pathToRepository,
java.lang.String pathToMatlab)
Creates a new instance of a SemanticSpace, the space will be created with all text documents found in a particular folder. |
Method Summary | |
---|---|
java.lang.String[] |
getDocuments()
|
double[][] |
getTermDocMatrix()
Returns the matrix that represents the semantic space |
java.lang.String[] |
getTerms()
|
void |
load()
Loads the semantic space |
void |
setDimensionalityReductionCriteria(int reduction,
double threshold)
Sets the criteria to select how many dimension will be kept after SVD |
void |
setTermSelectionCriteria(int selection,
double threshold)
Sets the criteria to select which terms will be included in the LSA space |
void |
setTermWeightingCriteria(int local,
int global)
Sets the term weighting scheme that will be used to calculate the LSA space |
java.lang.String |
stemWords(java.lang.String phrase)
Stemming words with Lucene and making it available in Matlab |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SemanticSpace(java.lang.String pathToRepository, java.lang.String pathToMatlab) throws java.lang.Exception
pathToRepository
- folder containing the documents to be processedpathToMatlab
- folder where the user's matlab folder is
java.lang.Exception
Method Detail |
---|
public java.lang.String stemWords(java.lang.String phrase)
phrase
-
public void load() throws java.lang.Exception
java.lang.Exception
public void setTermSelectionCriteria(int selection, double threshold)
selection
- the criteriathreshold
- the threshold above which the criteria will be validatedpublic void setDimensionalityReductionCriteria(int reduction, double threshold)
reduction
- the criteriathreshold
- the threshold above which the criteria will be validatedpublic void setTermWeightingCriteria(int local, int global)
local
- local weight criterionglobal
- global weight criterionpublic double[][] getTermDocMatrix() throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getTerms() throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getDocuments() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |