edu.stanford.nlp.ling.tokensregex
Class MultiNodePattern<T>

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.MultiNodePattern<T>
Direct Known Subclasses:
MultiCoreMapNodePattern, MultiCoreMapNodePattern.StringSequenceAnnotationPattern, MultiNodePattern.IntersectMultiNodePattern, MultiNodePattern.UnionMultiNodePattern

public abstract class MultiNodePattern<T>
extends java.lang.Object

Matches potentially multiple node (i.e does match across multiple tokens)

Author:
Angel Chang

Nested Class Summary
protected static class MultiNodePattern.IntersectMultiNodePattern<T>
           
protected static class MultiNodePattern.UnionMultiNodePattern<T>
           
 
Constructor Summary
MultiNodePattern()
           
 
Method Summary
 int getMaxNodes()
           
 int getMinNodes()
           
protected abstract  java.util.Collection<Interval<java.lang.Integer>> match(java.util.List<? extends T> nodes, int start)
          Tries to match sequence of nodes starting of start Returns intervals (token offsets) of when the nodes matches
 void setMaxNodes(int maxNodes)
           
 void setMinNodes(int minNodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiNodePattern

public MultiNodePattern()
Method Detail

match

protected abstract java.util.Collection<Interval<java.lang.Integer>> match(java.util.List<? extends T> nodes,
                                                                           int start)
Tries to match sequence of nodes starting of start Returns intervals (token offsets) of when the nodes matches

Parameters:
nodes -
start -

getMinNodes

public int getMinNodes()

setMinNodes

public void setMinNodes(int minNodes)

getMaxNodes

public int getMaxNodes()

setMaxNodes

public void setMaxNodes(int maxNodes)


Stanford NLP Group