Package org.languagetool.dev.dumpcheck
Class MixingSentenceSource
java.lang.Object
org.languagetool.dev.dumpcheck.SentenceSource
org.languagetool.dev.dumpcheck.MixingSentenceSource
Alternately returns sentences from different sentence sources.
- Since:
- 2.4
-
Method Summary
Methods inherited from class org.languagetool.dev.dumpcheck.SentenceSource
acceptSentence, remove, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
create
public static MixingSentenceSource create(List<String> dumpFileNames, Language language) throws IOException - Throws:
IOException
-
create
public static MixingSentenceSource create(List<String> dumpFileNames, Language language, Pattern filter) throws IOException - Throws:
IOException
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<Sentence>- Specified by:
hasNextin classSentenceSource
-
next
Description copied from class:SentenceSourceReturn the next sentence. Sentences from the source are filtered by length to remove very short and very long sentences.- Specified by:
nextin interfaceIterator<Sentence>- Specified by:
nextin classSentenceSource
-
getSource
- Specified by:
getSourcein classSentenceSource
-