edu.stanford.nlp.parser.lexparser
Class AbstractTreebankParserParams.AnnotatePunctuationFunction
java.lang.Object
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
AbstractTreebankParserParams.AnnotatePunctuationFunction
public AbstractTreebankParserParams.AnnotatePunctuationFunction(String annotationMark,
String key)
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