edu.stanford.nlp.trees
Class PennSentenceReaderFactory
java.lang.Object
|
+--edu.stanford.nlp.trees.PennSentenceReaderFactory
- All Implemented Interfaces:
- SentenceReaderFactory
- public class PennSentenceReaderFactory
- extends Object
- implements SentenceReaderFactory
This class implements a SentenceReaderFactory
which is
suitable for reading in tagged sentences from the Penn Treebank. It
knows how to clean up the rows of equals and square brackets in that
source, and decides sentence endings based on the tagging.
- Author:
- Christopher Manning
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PennSentenceReaderFactory
public PennSentenceReaderFactory()
newSentenceReader
public SentenceReader newSentenceReader(Reader in)
- The implementation of the
SentenceReaderFactory
interface.
- Specified by:
newSentenceReader
in interface SentenceReaderFactory
- Parameters:
in
- The Reader to read sentences from.
- Returns:
- A SentenceReader that reads sentences.
Stanford NLP Group