case classTokenTransformFeature(stateRef: StateRef, tokenTransforms: Set[TokenTransform]) extends StateFeature with Product with Serializable
A TokenTransformFeature creates a TransitionParserFeature from a TokenTransform and a StateRef.
Essentially it simply applies the TokenTransform to the token referenced by the StateRef (see
definitions of TokenTransform and StateRef for details).
For instance, suppose we want a binary feature that gives us the word at the top of the stack.
We can achieve this with TokenTransformFeature(StackRef(0), WordTransform).
stateRef
the StateRef that refers to our desired token
tokenTransforms
the transformation we want to perform on our desired token
A TokenTransformFeature creates a TransitionParserFeature from a TokenTransform and a StateRef.
Essentially it simply applies the TokenTransform to the token referenced by the StateRef (see definitions of TokenTransform and StateRef for details).
For instance, suppose we want a binary feature that gives us the word at the top of the stack. We can achieve this with TokenTransformFeature(StackRef(0), WordTransform).
the StateRef that refers to our desired token
the transformation we want to perform on our desired token