Constructor FSTCompletionLookup
FSTCompletionLookup()
This constructor prepares for creating a suggested FST using the Build(IInputIterator) method. The number of weight discretization buckets is set to DEFAULT_BUCKETS and exact matches are promoted to the top of the suggestions list.
Declaration
public FSTCompletionLookup()
FSTCompletionLookup(Int32, Boolean)
This constructor prepares for creating a suggested FST using the Build(IInputIterator) method.
Declaration
public FSTCompletionLookup(int buckets, bool exactMatchFirst)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | buckets | The number of weight discretization buckets (see FSTCompletion for details). |
System.Boolean | exactMatchFirst | If |
FSTCompletionLookup(FSTCompletion, Boolean)
This constructor takes a pre-built automaton.
Declaration
public FSTCompletionLookup(FSTCompletion completion, bool exactMatchFirst)
Parameters
Type | Name | Description |
---|---|---|
FSTCompletion | completion | An instance of FSTCompletion. |
System.Boolean | exactMatchFirst | If exact matches are promoted to the top of the
suggestions list. Otherwise they appear in the order of
discretized weight and alphabetical within the bucket.
|