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.


Constructor Summary
PennSentenceReaderFactory()
           
 
Method Summary
 SentenceReader newSentenceReader(Reader in)
          The implementation of the SentenceReaderFactory interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PennSentenceReaderFactory

public PennSentenceReaderFactory()
Method Detail

newSentenceReader

public SentenceReader newSentenceReader(Reader in)
The implementation of the SentenceReaderFactory interface.

Specified by:
newSentenceReader in interface SentenceReaderFactory


Stanford NLP Group