edu.stanford.nlp.ling.tokensregex
Class CoreMapExpressionNodePattern
java.lang.Object
edu.stanford.nlp.ling.tokensregex.NodePattern<CoreMap>
edu.stanford.nlp.ling.tokensregex.CoreMapExpressionNodePattern
public class CoreMapExpressionNodePattern
- extends NodePattern<CoreMap>
Pattern for matching a CoreMap using a generic expression
- Author:
- Angel Chang
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CoreMapExpressionNodePattern
public CoreMapExpressionNodePattern()
CoreMapExpressionNodePattern
public CoreMapExpressionNodePattern(Env env,
Expression expression)
valueOf
public static CoreMapExpressionNodePattern valueOf(Expression expression)
valueOf
public static CoreMapExpressionNodePattern valueOf(Env env,
Expression expression)
match
public boolean match(CoreMap token)
- Description copied from class:
NodePattern
- Returns true if the input node matches this pattern
- Specified by:
match in class NodePattern<CoreMap>
- Parameters:
token - - node to match
- Returns:
- true if the node matches the pattern, false otherwise
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Stanford NLP Group