edu.stanford.nlp.parser.lexparser
Class AbstractTreebankParserParams.AnnotatePunctuationFunction

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.AbstractTreebankParserParams.AnnotatePunctuationFunction
All Implemented Interfaces:
SerializableFunction<TregexMatcher,String>, Function<TregexMatcher,String>, Serializable
Enclosing class:
AbstractTreebankParserParams

protected static class AbstractTreebankParserParams.AnnotatePunctuationFunction
extends Object
implements SerializableFunction<TregexMatcher,String>

Annotation function for mapping punctuation to PTB-style equivalence classes.

Author:
Spence Green
See Also:
Serialized Form

Constructor Summary
AbstractTreebankParserParams.AnnotatePunctuationFunction(String annotationMark, String key)
           
 
Method Summary
 String apply(TregexMatcher m)
          Converts a T1 to a different T2.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractTreebankParserParams.AnnotatePunctuationFunction

public AbstractTreebankParserParams.AnnotatePunctuationFunction(String annotationMark,
                                                                String key)
Method Detail

apply

public String apply(TregexMatcher m)
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<TregexMatcher,String>
Parameters:
m - The function's argument
Returns:
The function's evaluated value

toString

public String toString()
Overrides:
toString in class Object


Stanford NLP Group