List of usage examples for org.apache.lucene.search.spell StringDistance interface-usage
From source file com.ostrichemulators.semtool.util.DoubleMetaphoneDistance.java
/** * * @author ryan */ public class DoubleMetaphoneDistance implements StringDistance {
From source file com.ostrichemulators.semtool.util.MetaphoneDistance.java
/** * * @author ryan */ public class MetaphoneDistance implements StringDistance {
From source file com.ostrichemulators.semtool.util.SoundexDistance.java
/** * * @author ryan */ public class SoundexDistance implements StringDistance {
From source file org.healthonnet.spellcheck.levenstein.NormalizedLevensteinDistance.java
/**
* Levenstein edit distance class.
*
* NOTE: the only difference between this and Apache Lucene's LevensteinDistance class
* is that it normalizes over the length of the target word rather than the max length of both
* words. So e.g. normal Lucene LevensteinDistance gives a similarity of 0.83 between "candi"