Computes a feature as the current observation ignoring case
Computes a feature as the current observation ignoring case
Segment length
SourceSequence of ObsSource[Obs]
objects
Current position within the sequence
A FeatureReturn
with the observation feature
Computes a feature with value ":E:"
Computes a feature with value ":E:"
Segment length
SourceSequence of ObsSource[Obs]
objects
Current position within the sequence
A FeatureReturn
with the unknown word feature :E: as an edge feature
Computes a feature with value ":E::x" where x is the size of the current segment
Computes a feature with value ":E::x" where x is the size of the current segment
Segment length
SourceSequence of ObsSource[Obs]
objects
Current position within the sequence
A FeatureReturn
with the unknown word feature :E: as an edge feature
Add lexicon features, but only if it matches an allowed set of named lexicons Useful for displacing features or other more advanced uses of lexicons
Add lexicon features, but only if it matches an allowed set of named lexicons Useful for displacing features or other more advanced uses of lexicons
Computes a feature with value ":U:"
Computes a feature with value ":U:"
Segment length
SourceSequence of ObsSource[Obs]
objects
Current position within the sequence
A FeatureReturn
with the unknown word feature :U:
Computes a feature with value ":U::x" where x is the size of the current segment
Computes a feature with value ":U::x" where x is the size of the current segment
Segment length
SourceSequence of ObsSource[Obs]
objects
Current position within the sequence
A FeatureReturn
with the unknown word feature :U:
Computes a feature as the hashed conjunction of ALL labels produced from pre-models
Computes a feature as the hashed conjunction of ALL labels produced from pre-models
Segment length
SourceSequence of ObsSource[Obs]
objects
Current position within the sequence
A FeatureReturn
with the pre-model labels hash-conjoined
Computes a FeatureReturn
with a single feature value fname
if the observation at the current position matches the specified regular expression.
Computes a FeatureReturn
with a single feature value fname
if the observation at the current position matches the specified regular expression.
The name of the feature
A regular expression applied to the observation
Segment length
SourceSequence of ObsSource[Obs]
objects
Current position within the sequence
Single feature if regexp matches current observation
Computes a feature as the current observation
Computes a feature as the current observation
Segment length
SourceSequence of ObsSource[Obs]
objects
Current position within the sequence
A FeatureReturn
with the observation feature as a hashcode
(Changed in version 2.9.0) The p0
call-by-name arguments is evaluated at most once per constructed Parser object, instead of on every need that arises during parsing.
Value for _wdFn _
Value for _wdFn _
#_wdFn(Int,SourceSequence[Obs],Int)
This dynamic feature manager redefines window and ngram functions to operate over the original sequence of elements in the context where we've recoded the original sequence to a selected sub-sequence with re-mapped labels. Design note: This could be a trait also