public class MultiCoreMapNodePattern extends MultiNodePattern<CoreMap>
This class allows for string matches across tokens. It is not implemented efficiently
(it basically creates a big pretend token and tries to do string match on that)
so can be expensive to use. Whenever possible, SequencePattern
should be used instead.
Modifier and Type | Class and Description |
---|---|
static class |
MultiCoreMapNodePattern.StringSequenceAnnotationPattern |
MultiNodePattern.IntersectMultiNodePattern<T>, MultiNodePattern.UnionMultiNodePattern<T>
Constructor and Description |
---|
MultiCoreMapNodePattern() |
MultiCoreMapNodePattern(NodePattern nodePattern) |
MultiCoreMapNodePattern(NodePattern nodePattern,
Map<Class,CoreMapAttributeAggregator> aggregators) |
Modifier and Type | Method and Description |
---|---|
protected Collection<Interval<Integer>> |
match(List<? extends CoreMap> nodes,
int start)
Tries to match sequence of nodes starting of start
Returns intervals (token offsets) of when the nodes matches
|
getMaxNodes, getMinNodes, setMaxNodes, setMinNodes
public MultiCoreMapNodePattern()
public MultiCoreMapNodePattern(NodePattern nodePattern)
public MultiCoreMapNodePattern(NodePattern nodePattern, Map<Class,CoreMapAttributeAggregator> aggregators)
protected Collection<Interval<Integer>> match(List<? extends CoreMap> nodes, int start)
MultiNodePattern
match
in class MultiNodePattern<CoreMap>