|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.dm.clusterlabeling.validation.external.MeasurePreferences
public class MeasurePreferences
To be used to set preferences for the validation. Is for
example used in each concrete class of PreferencedMeasure
.
Constructor Summary | |
---|---|
MeasurePreferences(StringMatching.Match matchType,
boolean toLowerCase,
boolean useStemmer,
boolean useSynonyms)
|
Method Summary | |
---|---|
static MeasurePreferences |
getDef(StringMatching.Match matchType)
Creates default preferences (based on the static members of ValidityPreferences . |
boolean |
getIfToLowerCase()
|
boolean |
getIfToUseStemmer()
|
boolean |
getIfToUseSynonyms()
|
java.util.Locale |
getLocale()
|
StringMatching.Match |
getMatchType()
|
Stemmer |
getStemmer()
|
edu.smu.tspell.wordnet.SynsetType |
getSynonymsType()
A value of null means take all. |
java.lang.String |
getWordNetDatabaseLocation()
|
edu.smu.tspell.wordnet.WordNetDatabase |
getWordNetDB()
|
void |
setLocale(java.util.Locale loc)
|
void |
setSynonymsType(edu.smu.tspell.wordnet.SynsetType synType)
|
void |
setWordNetDatabaseLocation(java.lang.String wordNetDir)
Only has an effect if useSynonyms is true. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MeasurePreferences(StringMatching.Match matchType, boolean toLowerCase, boolean useStemmer, boolean useSynonyms)
Method Detail |
---|
public StringMatching.Match getMatchType()
public boolean getIfToLowerCase()
public boolean getIfToUseSynonyms()
public boolean getIfToUseStemmer()
public Stemmer getStemmer()
public java.util.Locale getLocale()
public void setLocale(java.util.Locale loc)
public java.lang.String getWordNetDatabaseLocation()
null
if useSynonyms is falsepublic void setWordNetDatabaseLocation(java.lang.String wordNetDir)
wordNetDir
- public edu.smu.tspell.wordnet.WordNetDatabase getWordNetDB()
public edu.smu.tspell.wordnet.SynsetType getSynonymsType()
null
means take all.
public void setSynonymsType(edu.smu.tspell.wordnet.SynsetType synType)
synType
- a value of null
means take all.public static MeasurePreferences getDef(StringMatching.Match matchType)
ValidityPreferences
.
matchType
- the matchType - use null
if
you want default-settings here, too
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |