edu.stanford.nlp.ling.tokensregex
Class SequenceMatchRules.SequenceMatchResultExtractor<T>

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.SequenceMatchRules.SequenceMatchResultExtractor<T>
All Implemented Interfaces:
Function<SequenceMatchResult<T>,Value>
Enclosing class:
SequenceMatchRules

public static class SequenceMatchRules.SequenceMatchResultExtractor<T>
extends java.lang.Object
implements Function<SequenceMatchResult<T>,Value>


Constructor Summary
SequenceMatchRules.SequenceMatchResultExtractor(Env env, Expression result)
           
SequenceMatchRules.SequenceMatchResultExtractor(Env env, Expression action, Expression result)
           
 
Method Summary
 Value apply(SequenceMatchResult<T> 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.SequenceMatchResultExtractor

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

SequenceMatchRules.SequenceMatchResultExtractor

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

apply

public Value apply(SequenceMatchResult<T> 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<SequenceMatchResult<T>,Value>
Parameters:
matchResult - The function's argument
Returns:
The function's evaluated value


Stanford NLP Group