Package org.languagetool.dev.dumpcheck
Class SentenceSource
java.lang.Object
org.languagetool.dev.dumpcheck.SentenceSource
- Direct Known Subclasses:
MixingSentenceSource,PlainTextSentenceSource,WikipediaSentenceSource
Source of sentences to be checked/indexed. Sub classes provide access to XML files
or plain text sources.
- Since:
- 2.4
-
Method Details
-
hasNext
public abstract boolean hasNext() -
next
Return the next sentence. Sentences from the source are filtered by length to remove very short and very long sentences. -
getSource
-
remove
public void remove() -
toString
-
acceptSentence
-