|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkylm.reader.TextArraySentenceReader
public class TextArraySentenceReader
Implementation of a loader that loads directly from a text array in memory
Constructor Summary | |
---|---|
TextArraySentenceReader(java.lang.String[] sents)
The constructor, saves the sentence array and uses a single space as the default divider |
|
TextArraySentenceReader(java.lang.String[] sents,
java.lang.String divider)
The constructor, saves the sentence array and uses the passed in divider |
Method Summary | |
---|---|
java.util.Iterator<java.lang.String[]> |
iterator()
|
boolean |
supportsReset()
Whether the sentence loader supports returning multiple iterators or not. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextArraySentenceReader(java.lang.String[] sents)
sents
- the sentence arraypublic TextArraySentenceReader(java.lang.String[] sents, java.lang.String divider)
sents
- the sentence arraysMethod Detail |
---|
public java.util.Iterator<java.lang.String[]> iterator()
iterator
in interface java.lang.Iterable<java.lang.String[]>
iterator
in interface SentenceReader
public boolean supportsReset()
SentenceReader
supportsReset
in interface SentenceReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |