Module node

Source

StructsΒ§

Node
Node represents a single state in a finite state transducer.
PackSizes πŸ”’
StateAnyTrans πŸ”’
StateOneTrans πŸ”’
StateOneTransNext πŸ”’
Transitions
An iterator over all transitions in a node.

EnumsΒ§

State πŸ”’

ConstantsΒ§

TRANS_INDEX_THRESHOLD πŸ”’
The threshold (in number of transitions) at which an index is created for a node’s transitions. This speeds up lookup time at the expense of FST size.

FunctionsΒ§

common_idx πŸ”’
common_idx translate a byte to an index in the COMMON_INPUTS_INV array.
common_input πŸ”’
common_input translates a common input index stored in a serialized FST to the corresponding byte.
pack_delta πŸ”’
pack_delta_in πŸ”’
pack_delta_size πŸ”’
unpack_delta πŸ”’