case classTokenCardinalityFeature(stateRefs: Seq[StateRef]) extends StateFeature with Product with Serializable
An TokenCardinalityFeature creates a FeatureVector with features for the cardinality of the
the set of tokens referenced by a StateRef.
For instance, suppose we want a feature that tells us the number of children of the node
on top of the stack. We can achieve this with
TokenCardinalityFeature(Seq(TransitiveRef(StackRef(0), Seq(TokenGretels))))
stateRefs
the StateRefs that we want to know the cardinalities of
An TokenCardinalityFeature creates a FeatureVector with features for the cardinality of the the set of tokens referenced by a StateRef.
For instance, suppose we want a feature that tells us the number of children of the node on top of the stack. We can achieve this with TokenCardinalityFeature(Seq(TransitiveRef(StackRef(0), Seq(TokenGretels))))
the StateRefs that we want to know the cardinalities of