Constructor Builder
Builder(FST.INPUT_TYPE, Outputs<T>)
Instantiates an FST/FSA builder without any pruning. A shortcut to Builder(FST.INPUT_TYPE, Int32, Int32, Boolean, Boolean, Int32, Outputs<T>, Builder.FreezeTail<T>, Boolean, Single, Boolean, Int32) with pruning options turned off.
Declaration
public Builder(FST.INPUT_TYPE inputType, Outputs<T> outputs)
Parameters
Type | Name | Description |
---|---|---|
FST.INPUT_TYPE | inputType | |
Outputs<T> | outputs |
Builder(FST.INPUT_TYPE, Int32, Int32, Boolean, Boolean, Int32, Outputs<T>, Builder.FreezeTail<T>, Boolean, Single, Boolean, Int32)
Instantiates an FST/FSA builder with all the possible tuning and construction tweaks. Read parameter documentation carefully.
Declaration
public Builder(FST.INPUT_TYPE inputType, int minSuffixCount1, int minSuffixCount2, bool doShareSuffix, bool doShareNonSingletonNodes, int shareMaxTailLength, Outputs<T> outputs, Builder.FreezeTail<T> freezeTail, bool doPackFST, float acceptableOverheadRatio, bool allowArrayArcs, int bytesPageBits)
Parameters
Type | Name | Description |
---|---|---|
FST.INPUT_TYPE | inputType | The input type (transition labels). Can be anything from FST.INPUT_TYPE enumeration. Shorter types will consume less memory. Strings (character sequences) are represented as BYTE4 (full unicode codepoints). |
System.Int32 | minSuffixCount1 | If pruning the input graph during construction, this threshold is used for telling if a node is kept or pruned. If transition_count(node) >= minSuffixCount1, the node is kept. |
System.Int32 | minSuffixCount2 | (Note: only Mike McCandless knows what this one is really doing...) |
System.Boolean | doShareSuffix | If |
System.Boolean | doShareNonSingletonNodes | Only used if |
System.Int32 | shareMaxTailLength | Only used if |
Outputs<T> | outputs | The output type for each input sequence. Applies only if building an FST. For FSA, use Singleton and NoOutput as the singleton output object. |
Builder.FreezeTail<T> | freezeTail | |
System.Boolean | doPackFST | Pass |
System.Single | acceptableOverheadRatio | How to trade speed for space when building the FST. this option is only relevant when doPackFST is true. GetMutable(Int32, Int32, Single) |
System.Boolean | allowArrayArcs | Pass false to disable the array arc optimization while building the FST; this will make the resulting FST smaller but slower to traverse. |
System.Int32 | bytesPageBits | How many bits wide to make each byte[] block in the Lucene.Net.Util.Fst.BytesStore; if you know the FST will be large then make this larger. For example 15 bits = 32768 byte pages. |