|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nih.nlm.nls.tc.FilterApi.LegalWordsOption
public class LegalWordsOption
This class is the option object for legal words. It includes: A legal word is define as follows:
History:
Field Summary | |
---|---|
static int |
DEFAULT_JDI
|
static int |
DEFAULT_STI
|
static int |
DEFAULT_STRI
|
static int |
MAX_SIGNAL
|
static java.util.Hashtable<java.lang.String,java.lang.Integer> |
maxSignals_
|
Constructor Summary | |
---|---|
LegalWordsOption()
Initiate the LegalWordsOption object. |
|
LegalWordsOption(int defaultSet)
Initiate the LegalWordsOption object by specifying the default setting of JDI or STI. |
|
LegalWordsOption(java.lang.String word,
boolean useMinLength,
int minLength,
boolean removeStopWord,
boolean useRestrictWord,
boolean useMinSignal,
int minSignal,
boolean useMaxSignal,
int maxSignal,
boolean useMinWc,
int minWc,
boolean useMinDc,
int minDc)
Initiate the LegalWordsOption object by specifying all options. |
Method Summary | |
---|---|
int |
GetMaxSignal()
Get value of max. |
static int |
GetMaxSingalByVersion(java.lang.String version)
Get the default max singal by version |
int |
GetMinDc()
Get value of min. |
int |
GetMinLength()
Get value of min. |
int |
GetMinSignal()
Get value of min. |
int |
GetMinWc()
Get value of min. |
boolean |
GetRemoveStopWord()
Get boolean value of eliminating stopwords |
boolean |
GetUseMaxSignal()
Get boolean value of using max. |
boolean |
GetUseMinDc()
Get boolean value of using min. |
boolean |
GetUseMinLength()
Get boolean value of using min. |
boolean |
GetUseMinSignal()
Get boolean value of using min. |
boolean |
GetUseMinWc()
Get boolean value of using min. |
boolean |
GetUseRestrictWord()
Get boolean value of using restrictwords only |
void |
SetMaxSignal(int maxSignal)
Set value of max. |
void |
SetMaxSignal(java.lang.String version)
|
void |
SetMinDc(int minDc)
Set value of min. |
void |
SetMinLength(int minLength)
Set value of min. |
void |
SetMinSignal(int minSignal)
Set value of min. |
void |
SetMinWc(int minWc)
Set value of min. |
void |
SetRemoveStopWord(boolean removeStopWord)
Set flag of removing stopwords |
void |
SetUseMaxSignal(boolean useMaxSignal)
Set flag of using max. |
void |
SetUseMinDc(boolean useMinDc)
Set flag of using min. |
void |
SetUseMinLength(boolean useMinLength)
Set flag of using min. |
void |
SetUseMinSignal(boolean useMinSignal)
Set flag of using min. |
void |
SetUseMinWc(boolean useMinWc)
Set flag of using min. |
void |
SetUseRestrictWord(boolean useRestrictWord)
Set flag of using restrictwords only |
java.lang.String |
ToString()
Get the selected Options |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_JDI
public static final int DEFAULT_STI
public static final int DEFAULT_STRI
public static final int MAX_SIGNAL
public static final java.util.Hashtable<java.lang.String,java.lang.Integer> maxSignals_
Constructor Detail |
---|
public LegalWordsOption()
public LegalWordsOption(int defaultSet)
public LegalWordsOption(java.lang.String word, boolean useMinLength, int minLength, boolean removeStopWord, boolean useRestrictWord, boolean useMinSignal, int minSignal, boolean useMaxSignal, int maxSignal, boolean useMinWc, int minWc, boolean useMinDc, int minDc)
word
- word to be testeduseMinLength
- boolean flag of using min. lengthminLength
- size of min. legnthremoveStopWord
- boolean flag of removing stopwordsuseRestrictWord
- boolean flag of using restrictwordsuseMinSignal
- boolean flag of using min. signalminSignal
- min. value of normalized signaluseMaxSignal
- boolean flag of using max. signalmaxSignal
- max. value of normalized signaluseMinWc
- boolean flag of using min. word countminWc
- min. value of word countuseMinDc
- boolean flag of using min. document countminDc
- min. value of document countMethod Detail |
---|
public void SetUseMinLength(boolean useMinLength)
useMinLength
- boolean flag to use min. word lengthpublic void SetMinLength(int minLength)
minLength
- value of min. word lengthpublic void SetRemoveStopWord(boolean removeStopWord)
removeStopWord
- boolean flag to remove stopwordspublic void SetUseRestrictWord(boolean useRestrictWord)
useRestrictWord
- boolean flag to use restrictwords onlypublic void SetUseMinSignal(boolean useMinSignal)
useMinSignal
- boolean flag to use min. signalpublic void SetMinSignal(int minSignal)
minSignal
- value of min. signalpublic void SetUseMaxSignal(boolean useMaxSignal)
useMaxSignal
- boolean flag to use max. signalpublic void SetMaxSignal(int maxSignal)
maxSignal
- value of max. signalpublic void SetMaxSignal(java.lang.String version)
public void SetUseMinWc(boolean useMinWc)
useMinWc
- boolean flag to use min. word countpublic void SetMinWc(int minWc)
minWc
- value of min. word countpublic void SetUseMinDc(boolean useMinDc)
useMinDc
- boolean flag to use min. document countpublic void SetMinDc(int minDc)
minDc
- value of min. document countpublic boolean GetUseMinLength()
public int GetMinLength()
public boolean GetRemoveStopWord()
public boolean GetUseRestrictWord()
public boolean GetUseMinSignal()
public int GetMinSignal()
public boolean GetUseMaxSignal()
public int GetMaxSignal()
public boolean GetUseMinWc()
public int GetMinWc()
public boolean GetUseMinDc()
public int GetMinDc()
public java.lang.String ToString()
public static int GetMaxSingalByVersion(java.lang.String version)
|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |