Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Inherits SpellChecker.Net.Search.Spell.StringDistance.
Public Member Functions | |
NGramDistance (int size) | |
Creates an N-Gram distance measure using n-grams of the specified size. | |
NGramDistance () | |
Creates an N-Gram distance measure using n-grams of size 2. | |
float | GetDistance (String source, String target) |
Returns a float between 0 and 1 based on how similar the specified strings are to one another. Returning a value of 1 means the specified strings are identical and 0 means the string are maximally different. | |
Definition at line 25 of file NGramDistance.cs.
SpellChecker.Net.Search.Spell.NGramDistance.NGramDistance | ( | int | size | ) |
Creates an N-Gram distance measure using n-grams of the specified size.
size | The size of the n-gram to be used to compute the string distance. |
Definition at line 33 of file NGramDistance.cs.
SpellChecker.Net.Search.Spell.NGramDistance.NGramDistance | ( | ) |
Creates an N-Gram distance measure using n-grams of size 2.
Definition at line 41 of file NGramDistance.cs.
float SpellChecker.Net.Search.Spell.NGramDistance.GetDistance | ( | String | s1, |
String | s2 | ||
) |
Returns a float between 0 and 1 based on how similar the specified strings are to one another. Returning a value of 1 means the specified strings are identical and 0 means the string are maximally different.
s1 | The first string. |
s2 | The second string. |
Implements SpellChecker.Net.Search.Spell.StringDistance.
Definition at line 46 of file NGramDistance.cs.