edu.stanford.nlp.ling.tokensregex
Class SequenceMatchRules.StringMatchResultExtractor

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.SequenceMatchRules.StringMatchResultExtractor
All Implemented Interfaces:
Function<java.util.regex.MatchResult,Value>
Enclosing class:
SequenceMatchRules

public static class SequenceMatchRules.StringMatchResultExtractor
extends java.lang.Object
implements Function<java.util.regex.MatchResult,Value>


Constructor Summary
SequenceMatchRules.StringMatchResultExtractor(Env env, Expression result)
           
SequenceMatchRules.StringMatchResultExtractor(Env env, Expression action, Expression result)
           
 
Method Summary
 Value apply(java.util.regex.MatchResult matchResult)
          Converts a T1 to a different T2.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceMatchRules.StringMatchResultExtractor

public SequenceMatchRules.StringMatchResultExtractor(Env env,
                                                     Expression action,
                                                     Expression result)

SequenceMatchRules.StringMatchResultExtractor

public SequenceMatchRules.StringMatchResultExtractor(Env env,
                                                     Expression result)
Method Detail

apply

public Value apply(java.util.regex.MatchResult matchResult)
Description copied from interface: Function
Converts a T1 to a different T2. For example, a Parser will convert a Sentence to a Tree. A Tagger will convert a Sentence to a TaggedSentence.

Specified by:
apply in interface Function<java.util.regex.MatchResult,Value>
Parameters:
matchResult - The function's argument
Returns:
The function's evaluated value


Stanford NLP Group