public static class MultiCoreMapNodePattern.StringSequenceAnnotationPattern extends MultiNodePattern<CoreMap>
MultiNodePattern.IntersectMultiNodePattern<T>, MultiNodePattern.UnionMultiNodePattern<T>
Constructor and Description |
---|
StringSequenceAnnotationPattern(Class textKey,
Map<List<String>,Object> targets) |
StringSequenceAnnotationPattern(Class textKey,
Map<List<String>,Object> targets,
boolean ignoreCase) |
StringSequenceAnnotationPattern(Class textKey,
Set<List<String>> targets) |
StringSequenceAnnotationPattern(Class textKey,
Set<List<String>> targets,
boolean ignoreCase) |
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
|
String |
toString() |
getMaxNodes, getMinNodes, isGreedyMatch, setGreedyMatch, setMaxNodes, setMinNodes
public StringSequenceAnnotationPattern(Class textKey, Set<List<String>> targets, boolean ignoreCase)
public StringSequenceAnnotationPattern(Class textKey, Set<List<String>> targets)
public StringSequenceAnnotationPattern(Class textKey, Map<List<String>,Object> targets, boolean ignoreCase)
protected Collection<Interval<Integer>> match(List<? extends CoreMap> nodes, int start)
MultiNodePattern
match
in class MultiNodePattern<CoreMap>