public class MixingSentenceSource extends SentenceSource
Modifier and Type | Method and Description |
---|---|
static MixingSentenceSource |
create(List<String> dumpFileNames,
Language language) |
static MixingSentenceSource |
create(List<String> dumpFileNames,
Language language,
Pattern filter) |
String |
getSource() |
boolean |
hasNext() |
Sentence |
next()
Return the next sentence.
|
acceptSentence, remove, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
public static MixingSentenceSource create(List<String> dumpFileNames, Language language) throws IOException
IOException
public static MixingSentenceSource create(List<String> dumpFileNames, Language language, Pattern filter) throws IOException
IOException
public boolean hasNext()
hasNext
in interface Iterator<Sentence>
hasNext
in class SentenceSource
public Sentence next()
SentenceSource
next
in interface Iterator<Sentence>
next
in class SentenceSource
public String getSource()
getSource
in class SentenceSource