C# Class SpellChecker.Net.Search.Spell.NGramDistance

Show file Open project: spatial-computing/strabo-learning-ocr-transformation Class Usage Examples

Public Methods

Method Description
GetDistance ( String source, String target ) : float
NGramDistance ( ) : System

Creates an N-Gram distance measure using n-grams of size 2.

NGramDistance ( int size ) : System

Creates an N-Gram distance measure using n-grams of the specified size.

Method Details

GetDistance() public method

public GetDistance ( String source, String target ) : float
source String
target String
return float

NGramDistance() public method

Creates an N-Gram distance measure using n-grams of size 2.
public NGramDistance ( ) : System
return System

NGramDistance() public method

Creates an N-Gram distance measure using n-grams of the specified size.
public NGramDistance ( int size ) : System
size int The size of the n-gram to be used to compute the string distance.
return System