edu.stanford.nlp.ling.tokensregex
Class SequenceMatchRules.CoreMapFunctionApplier<T,O>

java.lang.Object
  extended by edu.stanford.nlp.ling.tokensregex.SequenceMatchRules.CoreMapFunctionApplier<T,O>
All Implemented Interfaces:
Function<CoreMap,O>
Enclosing class:
SequenceMatchRules

public static class SequenceMatchRules.CoreMapFunctionApplier<T,O>
extends java.lang.Object
implements Function<CoreMap,O>


Constructor Summary
SequenceMatchRules.CoreMapFunctionApplier(java.lang.Class annotationField, Function<T,O> func)
           
 
Method Summary
 O apply(CoreMap cm)
          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.CoreMapFunctionApplier

public SequenceMatchRules.CoreMapFunctionApplier(java.lang.Class annotationField,
                                                 Function<T,O> func)
Method Detail

apply

public O apply(CoreMap cm)
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<CoreMap,O>
Parameters:
cm - The function's argument
Returns:
The function's evaluated value


Stanford NLP Group