Class CorrectionRule
- java.lang.Object
-
- org.predict4all.nlp.words.correction.model.CorrectionRule
-
public class CorrectionRule extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
double
getCost()
java.lang.String
getError()
double
getFactor()
int
getMaxIndexFromEnd()
int
getMaxIndexFromStart()
int
getMinIndexFromEnd()
int
getMinIndexFromStart()
java.lang.String
getReplacement()
java.lang.String
getReplacementLeftPart()
java.lang.String
getReplacementRightPart()
Separator
getReplacementSeparator()
int
getReplacementSeparatorIndex()
CorrectionRuleBuilder
getSrcBuilder()
int
hashCode()
CorrectionRule
opposite()
java.lang.String
toString()
static CorrectionRule
transitive(CorrectionRule first, CorrectionRule second)
boolean
transitivePossible(CorrectionRule other)
-
-
-
Method Detail
-
getFactor
public double getFactor()
-
getError
public java.lang.String getError()
-
getReplacement
public java.lang.String getReplacement()
-
getMaxIndexFromStart
public int getMaxIndexFromStart()
-
getMinIndexFromStart
public int getMinIndexFromStart()
-
getMaxIndexFromEnd
public int getMaxIndexFromEnd()
-
getMinIndexFromEnd
public int getMinIndexFromEnd()
-
getCost
public double getCost()
-
opposite
public CorrectionRule opposite()
-
getReplacementSeparatorIndex
public int getReplacementSeparatorIndex()
-
getReplacementLeftPart
public java.lang.String getReplacementLeftPart()
-
getReplacementRightPart
public java.lang.String getReplacementRightPart()
-
getReplacementSeparator
public Separator getReplacementSeparator()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getSrcBuilder
public CorrectionRuleBuilder getSrcBuilder()
-
transitive
public static CorrectionRule transitive(CorrectionRule first, CorrectionRule second)
-
transitivePossible
public boolean transitivePossible(CorrectionRule other)
-
-