|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.trees.AdwaitSentenceReaderFactory
This class implements a SentenceReaderFactory
which is
suitable for reading in tagged or untagged sentences formatted
one per line with underscores used only to separate words from POS tags.
These are 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.
Constructor Summary | |
AdwaitSentenceReaderFactory()
Constructs an AdwaitSentenceReaderFactory. |
|
AdwaitSentenceReaderFactory(boolean taggedWords)
Create a new AdwaitSentenceReaderFactory . |
|
AdwaitSentenceReaderFactory(LabelFactory lf)
Create a new AdwaitSentenceReaderFactory . |
Method Summary | |
SentenceReader |
newSentenceReader(Reader in)
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 |
public AdwaitSentenceReaderFactory()
public AdwaitSentenceReaderFactory(boolean taggedWords)
AdwaitSentenceReaderFactory
.
taggedWords
- Set to true
if it should created
TaggedWord objects, false
if it should
create Word objectspublic AdwaitSentenceReaderFactory(LabelFactory lf)
AdwaitSentenceReaderFactory
.
lf
- LabelFactory to be used to create type for words read inMethod Detail |
public SentenceReader newSentenceReader(Reader in)
SentenceReaderFactory
interface.
newSentenceReader
in interface SentenceReaderFactory
in
- The Reader for input
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |