Method SloppyFreq
SloppyFreq(Int32)
Computes the amount of a sloppy phrase match, based on an edit distance. this value is summed for each sloppy phrase match in a document to form the frequency to be used in scoring instead of the exact term count.
A phrase match with a small edit distance to a document passage more closely matches the document, so implementations of this method usually return larger values when the edit distance is small and smaller values when it is large.
Declaration
public abstract float SloppyFreq(int distance)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | distance | The edit distance of this sloppy phrase match |
Returns
Type | Description |
---|---|
System.Single | The frequency increment for this match |