|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eml.sir.rel.disc.GUIRelatednessRanker
Execute a search using semantic relatedness between the words.
Field Summary | |
LinComparator |
wrc
|
WordRelatednessMap |
wrm
|
Constructor Summary | |
GUIRelatednessRanker()
Creates an instance of GUIRelatednessRanker. |
Method Summary | |
int |
getEquation()
Return the type number of the equation used to compute the discourse relatedness. |
double |
getThreshold()
Word relatedness values that are smaller than the threshold will not be used to compute the discourse relatednesses. |
void |
guiWordRelatednessMap(java.util.ArrayList profileList)
This method is used when the user input is not a profile but a random text. |
void |
initNounDisc(java.lang.String corpusPath)
Creates and serializes an instance of NounDisc from files from a given corpus. |
void |
initWordRelatednessMap(java.lang.String profilesPath)
Creates an instance of WordRelatednessMap loading |
boolean |
isUsingStopWords()
|
boolean |
loadNounCorpus(java.lang.String filePath)
Load an already computed and serialized instance of a corpus. |
boolean |
loadWordRelatednessMap(java.lang.String filePath)
Load an already computed and serialized instance of a WordRelatednessMap. |
GUIRelatednessResult |
rank(java.util.ArrayList profileList)
Create a ranked result instance of GUIRelatednessResult. |
boolean |
saveNounCorpus(java.lang.String filePath)
Saerializes and saves an already computed instance of a corpus. |
boolean |
saveWordRelatednessMap(java.lang.String filePath)
Serialize and save an already computed instance of a WordRelatednessMap. |
void |
setEquation(int equationNumber)
Set the type number of the equation used to compute the discourse relatedness. |
void |
setThreshold(double threshold)
Word relatedness values that are smaller than the threshold will not be used to compute the discourse relatednesses. |
void |
setUseStopWords(boolean useStopWords)
Sets wether to use stop words or not. |
java.lang.String |
toString()
Return a String that contains importnat infomration about this instance of RelatednessRanker. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public WordRelatednessMap wrm
public LinComparator wrc
Constructor Detail |
public GUIRelatednessRanker()
Method Detail |
public boolean isUsingStopWords()
public void setUseStopWords(boolean useStopWords)
useStopWords
- determines if the stop words are usedpublic double getThreshold()
public void setThreshold(double threshold)
threshold
- The threshold to set.public int getEquation()
public void setEquation(int equationNumber)
equationNumber
- The equation to set.public void initNounDisc(java.lang.String corpusPath)
corpusPath
- the path to the corpus directorypublic boolean saveNounCorpus(java.lang.String filePath)
filePath
- the file where the instance is saved
public boolean loadNounCorpus(java.lang.String filePath)
filePath
- the file which contains the serialized instance
public void initWordRelatednessMap(java.lang.String profilesPath)
public boolean loadWordRelatednessMap(java.lang.String filePath)
filePath
- the file which contains the serialized instance
public boolean saveWordRelatednessMap(java.lang.String filePath)
filePath
- the file where the instance is saved
public void guiWordRelatednessMap(java.util.ArrayList profileList)
profileList
- the nouns from the user input which will be used
for the computing of the WordRelatednessMappublic GUIRelatednessResult rank(java.util.ArrayList profileList)
profileList
- the nouns from the user input
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |