public static class WeightedLevenshtein.DefaultWeightEstimator extends java.lang.Object implements WeightedLevenshtein.WeightEstimator
Constructor and Description |
---|
DefaultWeightEstimator() |
Modifier and Type | Method and Description |
---|---|
double |
delete(int pos,
char ch) |
double |
insert(int pos,
char ch) |
void |
recompute() |
void |
setDigitWeight(double digits) |
void |
setLetterWeight(double letters) |
void |
setOtherWeight(double other) |
void |
setPunctuationWeight(double punctuation) |
double |
substitute(int pos,
char ch1,
char ch2) |
public double substitute(int pos, char ch1, char ch2)
substitute
in interface WeightedLevenshtein.WeightEstimator
public double delete(int pos, char ch)
delete
in interface WeightedLevenshtein.WeightEstimator
public double insert(int pos, char ch)
insert
in interface WeightedLevenshtein.WeightEstimator
public void setDigitWeight(double digits)
public void setLetterWeight(double letters)
public void setOtherWeight(double other)
public void setPunctuationWeight(double punctuation)
public void recompute()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.