|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.itc.irst.tcc.ties.bwi.Affix
An Affix object stores both Pattern
and locations in the example set where the pattern does match
and doesn't, matchOk and matchWrong
respectively.
The class implements the Serializable interface so that instances may be saved to disk if desired.
PatternTable,
Pattern,
PatternMatches,
Serialized Form| Field Summary | |
double |
cv
|
double |
cvs
|
(package private) static org.apache.log4j.Logger |
logger
Define a static logger variable so that it references the Logger instance named Affix. |
static int |
MAX_INDEX_TO_STRING
The max number of indexes printed. |
private Pattern |
pattern
The pattern. |
private PatternMatches |
patternMatches
The list of ok and wrong matches for this pattern. |
| Constructor Summary | |
Affix(int pattType)
Constructs an ampty Affix. |
|
Affix(Pattern pattern,
PatternMatches patternMatches)
Constructs an Affix. |
|
| Method Summary | |
IndexList |
getMatchOk()
Gets the list of correct matches into the text. |
IndexList |
getMatchWrong()
Gets the list of wrong matches into the text. |
Pattern |
getPattern()
Returns the pattern. |
PatternMatches |
getPatternMatches()
Gets the list of wrong matches into the text. |
int |
getPatternType()
Returns the pattern type. |
int |
hashCode()
Returns the hash code value for this affix. |
boolean |
isEmpty()
Tests if this affix has an empty pattern. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
Returns a String object representing this Affix. |
java.lang.String |
toXML()
Returns a String object representing this Affix in XML. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
static org.apache.log4j.Logger logger
Affix.
private Pattern pattern
private PatternMatches patternMatches
public static final int MAX_INDEX_TO_STRING
public double cv
public double cvs
| Constructor Detail |
public Affix(int pattType)
pattType - the pattern type.
public Affix(Pattern pattern,
PatternMatches patternMatches)
pattern - the pattern.| Method Detail |
public Pattern getPattern()
public boolean isEmpty()
true if and only if this affix has an empty pattern, that is, the pattern length is zero; false otherwise.public int getPatternType()
public IndexList getMatchOk()
public IndexList getMatchWrong()
public PatternMatches getPatternMatches()
public int hashCode()
public java.lang.String toString()
public java.lang.String toXML()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||