edu.stanford.nlp.trees
Class AdwaitSentenceReaderFactory
java.lang.Object
|
+--edu.stanford.nlp.trees.AdwaitSentenceReaderFactory
- All Implemented Interfaces:
- SentenceReaderFactory
- public class AdwaitSentenceReaderFactory
- extends Object
- implements SentenceReaderFactory
This class implements a SentenceReaderFactory
which is
suitable for reading in tagged or untagged sentences formatted
according to the conventions used in Adwait Ratnaparkhi's Java MXPOST and
MXTERMINATOR software. The conventions are these: End-of-line
indicates a sentence end. Tags are separated from words by an
underscore character (_). The underscore character does not appear in
words.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdwaitSentenceReaderFactory
public AdwaitSentenceReaderFactory()
AdwaitSentenceReaderFactory
public AdwaitSentenceReaderFactory(boolean taggedWords)
- Create a new
AdwaitSentenceReaderFactory
.
- Parameters:
taggedWords
- true if it should created TaggedWord objects,
false if it should create Word objects
newSentenceReader
public SentenceReader newSentenceReader(Reader in)
- The implementation of the
SentenceReaderFactory
interface.
- Specified by:
newSentenceReader
in interface SentenceReaderFactory
Stanford NLP Group