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 that is passed to Tf(Single).
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 |