Class PrefetchingSentenceIterator
- java.lang.Object
-
- org.deeplearning4j.text.sentenceiterator.PrefetchingSentenceIterator
-
- All Implemented Interfaces:
SentenceIterator
@Deprecated public class PrefetchingSentenceIterator extends Object implements SentenceIterator
Deprecated.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrefetchingSentenceIterator.BuilderDeprecated.
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerlogDeprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidfinalize()Deprecated.voidfinish()Deprecated.Allows for any finishing (closing of input streams or the like)SentencePreProcessorgetPreProcessor()Deprecated.booleanhasNext()Deprecated.Same idea asIteratorStringnextSentence()Deprecated.Gets the next sentence or null if there's nothing left (Do yourself a favor and check hasNext() )voidreset()Deprecated.Resets the iterator to the beginningvoidsetPreProcessor(SentencePreProcessor preProcessor)Deprecated.
-
-
-
Method Detail
-
nextSentence
public String nextSentence()
Deprecated.Description copied from interface:SentenceIteratorGets the next sentence or null if there's nothing left (Do yourself a favor and check hasNext() )- Specified by:
nextSentencein interfaceSentenceIterator- Returns:
- the next sentence in the iterator
-
hasNext
public boolean hasNext()
Deprecated.Description copied from interface:SentenceIteratorSame idea asIterator- Specified by:
hasNextin interfaceSentenceIterator- Returns:
- whether there's anymore sentences left
-
reset
public void reset()
Deprecated.Description copied from interface:SentenceIteratorResets the iterator to the beginning- Specified by:
resetin interfaceSentenceIterator
-
finish
public void finish()
Deprecated.Description copied from interface:SentenceIteratorAllows for any finishing (closing of input streams or the like)- Specified by:
finishin interfaceSentenceIterator
-
getPreProcessor
public SentencePreProcessor getPreProcessor()
Deprecated.- Specified by:
getPreProcessorin interfaceSentenceIterator
-
setPreProcessor
public void setPreProcessor(SentencePreProcessor preProcessor)
Deprecated.- Specified by:
setPreProcessorin interfaceSentenceIterator
-
-