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

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

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


Constructor Summary
SequenceMatchRules.StringMatchedExpressionExtractor(MatchedExpression.SingleAnnotationExtractor extractor, int group)
           
 
Method Summary
 MatchedExpression apply(java.util.regex.MatchResult matched)
          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.StringMatchedExpressionExtractor

public SequenceMatchRules.StringMatchedExpressionExtractor(MatchedExpression.SingleAnnotationExtractor extractor,
                                                           int group)
Method Detail

apply

public MatchedExpression apply(java.util.regex.MatchResult matched)
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,MatchedExpression>
Parameters:
matched - The function's argument
Returns:
The function's evaluated value


Stanford NLP Group