Package org.languagetool.dev.dumpcheck
Class PlainTextSentenceSource
java.lang.Object
org.languagetool.dev.dumpcheck.SentenceSource
org.languagetool.dev.dumpcheck.PlainTextSentenceSource
Provides access to the relevant sentences of a plain text file
with one sentence per line.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionPlainTextSentenceSource(InputStream textInput, Language language) PlainTextSentenceSource(InputStream textInput, Language language, Pattern filter) -
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
-
Constructor Details
-
PlainTextSentenceSource
-
PlainTextSentenceSource
- Since:
- 3.0
-
-
Method Details
-
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
-