public class GeneralLevenshteinLattice<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static short |
COPY |
protected int[][] |
cost_lattice_ |
protected static short |
DELETE |
protected int |
delete_cost_ |
protected java.util.List<T> |
input_ |
protected static short |
INSERT |
protected int |
insert_cost_ |
protected short[][] |
op_lattice_ |
protected java.util.List<T> |
output_ |
protected static short |
REPLACE |
protected int |
replace_cost_ |
protected static short |
START |
| Constructor and Description |
|---|
GeneralLevenshteinLattice(java.util.List<T> input,
java.util.List<T> output) |
GeneralLevenshteinLattice(java.util.List<T> input,
java.util.List<T> output,
int insert_cost,
int delete_cost,
int replace_cost) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
fillLattice() |
protected int |
getCopyCost(int input_index) |
int |
getDistance() |
protected int |
getReplaceCost(T input,
T output) |
protected void |
init() |
protected int |
min(int a,
int b,
int c) |
protected int[][] cost_lattice_
protected short[][] op_lattice_
protected static final short START
protected static final short INSERT
protected static final short DELETE
protected static final short COPY
protected static final short REPLACE
protected java.util.List<T> input_
protected java.util.List<T> output_
protected int replace_cost_
protected int insert_cost_
protected int delete_cost_