public static class PrefetchingSentenceIterator.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder(SentenceIterator iterator) |
Modifier and Type | Method and Description |
---|---|
PrefetchingSentenceIterator |
build() |
PrefetchingSentenceIterator.Builder |
setFetchSize(int fetchSize) |
PrefetchingSentenceIterator.Builder |
setSentencePreProcessor(SentencePreProcessor preProcessor) |
public Builder(@NonNull SentenceIterator iterator)
public PrefetchingSentenceIterator.Builder setFetchSize(int fetchSize)
public PrefetchingSentenceIterator.Builder setSentencePreProcessor(@NonNull SentencePreProcessor preProcessor)
public PrefetchingSentenceIterator build()