public class LevenshteinAutomata extends Object
Implements the algorithm described in: Schulz and Mihov: Fast String Correction with Levenshtein Automata
Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_SUPPORTED_DISTANCE |
Constructor and Description |
---|
LevenshteinAutomata(String input,
boolean withTranspositions)
Create a new LevenshteinAutomata for some input String.
|
public static final int MAXIMUM_SUPPORTED_DISTANCE
public LevenshteinAutomata(String input, boolean withTranspositions)
public Automaton toAutomaton(int n)
n
.
All automata have the following properties:
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.