|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStatistic
statistic information interface. statistic of a lexelt.
Method Summary | |
---|---|
boolean |
addInstance(IInstance p_iInstance)
add one instance into the statistic. |
void |
clear()
clear the statistic |
boolean |
contains(int p_Index,
java.lang.String p_Value)
check whether feature p_Index contains value p_Value |
int |
getCount(int p_Index,
java.lang.String p_Value)
get the count of value p_Value of feature p_Index |
int |
getCount(int p_KeyIndex,
java.lang.String p_Value,
java.lang.String p_Tag)
get the count of value p_Value of feature p_Key with p_Tag |
int |
getCount(java.lang.String p_Key,
java.lang.String p_Value)
get the count of value p_Value of feature p_Key |
int |
getCount(java.lang.String p_Key,
java.lang.String p_Value,
java.lang.String p_Tag)
get the count of value p_Value of feature p_Key with p_Tag |
java.lang.String |
getDefaultValue()
get the default value of feature |
int |
getIndex(java.lang.String p_Key)
get the feature index of feature p_Key |
java.lang.String |
getKey(int p_Index)
get the feature name of feature p_Index |
java.util.List<java.lang.String> |
getKeys()
get the list of feature names in the statistic |
int |
getParameter(java.lang.String p_Parameter)
get the value of p_Parameter |
int |
getTagCount(java.lang.String p_Tag)
get count of tag |
java.util.Set<java.lang.String> |
getTags()
get the tag list |
java.util.List<java.lang.String> |
getTagsInOrder()
get the tags in order |
java.lang.String |
getType(int p_Index)
get the feature type of feature p_Index |
java.lang.String |
getType(java.lang.String p_Key)
get feature type of feature p_Key |
java.util.List<java.lang.String> |
getValue(int p_Index)
get the value list of feature p_Index |
java.util.List<java.lang.String> |
getValue(java.lang.String p_Key)
get the value list of feature p_key |
boolean |
isProcessed()
check whether the statistic object has been processed like filtering and some others |
boolean |
loadFromFile(java.lang.String p_FileName)
load the statistic information from file |
boolean |
removeInstance(IInstance p_iInstance)
remove one instance from the statistic |
void |
select(IFeatureSelector p_Selector)
select features |
boolean |
setParameter(java.lang.String p_Parameter,
int p_Value)
set parameter of the statistic information |
int |
size()
get the number of instances |
boolean |
writeToFile(java.lang.String p_FileName)
write the statistic information into file |
Method Detail |
---|
boolean addInstance(IInstance p_iInstance)
p_iInstance
- instance
boolean removeInstance(IInstance p_iInstance)
p_iInstance
- instance
boolean loadFromFile(java.lang.String p_FileName)
p_FileName
- statistic file
boolean writeToFile(java.lang.String p_FileName)
p_FileName
- file to be written
boolean setParameter(java.lang.String p_Parameter, int p_Value)
p_Parameter
- parameter namep_Value
- parameter value
int getParameter(java.lang.String p_Parameter)
p_Parameter
- parameter name
int getTagCount(java.lang.String p_Tag)
p_Tag
- tag name
java.util.Set<java.lang.String> getTags()
java.util.List<java.lang.String> getTagsInOrder()
int size()
java.util.List<java.lang.String> getKeys()
int getIndex(java.lang.String p_Key)
p_Key
- feature name
java.lang.String getKey(int p_Index)
p_Index
- feature index
java.lang.String getType(java.lang.String p_Key)
p_Key
- feature name
java.lang.String getType(int p_Index)
p_Index
- feature index
java.util.List<java.lang.String> getValue(java.lang.String p_Key)
p_Key
- feature name
java.util.List<java.lang.String> getValue(int p_Index)
p_Index
- feature index
java.lang.String getDefaultValue()
int getCount(java.lang.String p_Key, java.lang.String p_Value)
p_Key
- feature namep_Value
- feature value
int getCount(int p_Index, java.lang.String p_Value)
p_Index
- feature indexp_Value
- feature value
int getCount(java.lang.String p_Key, java.lang.String p_Value, java.lang.String p_Tag)
p_Key
- feature namep_Value
- feature valuep_Tag
- tag
int getCount(int p_KeyIndex, java.lang.String p_Value, java.lang.String p_Tag)
p_KeyIndex
- feature indexp_Value
- feature valuep_Tag
- tag
boolean contains(int p_Index, java.lang.String p_Value)
p_Index
- feature indexp_Value
- feature value
void select(IFeatureSelector p_Selector)
p_Selector
- feature selectorboolean isProcessed()
void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |