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 class
PrefetchingSentenceIterator.Builder
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
log
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
finalize()
Deprecated.void
finish()
Deprecated.Allows for any finishing (closing of input streams or the like)SentencePreProcessor
getPreProcessor()
Deprecated.boolean
hasNext()
Deprecated.Same idea asIterator
String
nextSentence()
Deprecated.Gets the next sentence or null if there's nothing left (Do yourself a favor and check hasNext() )void
reset()
Deprecated.Resets the iterator to the beginningvoid
setPreProcessor(SentencePreProcessor preProcessor)
Deprecated.
-
-
-
Method Detail
-
nextSentence
public String nextSentence()
Deprecated.Description copied from interface:SentenceIterator
Gets the next sentence or null if there's nothing left (Do yourself a favor and check hasNext() )- Specified by:
nextSentence
in interfaceSentenceIterator
- Returns:
- the next sentence in the iterator
-
hasNext
public boolean hasNext()
Deprecated.Description copied from interface:SentenceIterator
Same idea asIterator
- Specified by:
hasNext
in interfaceSentenceIterator
- Returns:
- whether there's anymore sentences left
-
reset
public void reset()
Deprecated.Description copied from interface:SentenceIterator
Resets the iterator to the beginning- Specified by:
reset
in interfaceSentenceIterator
-
finish
public void finish()
Deprecated.Description copied from interface:SentenceIterator
Allows for any finishing (closing of input streams or the like)- Specified by:
finish
in interfaceSentenceIterator
-
getPreProcessor
public SentencePreProcessor getPreProcessor()
Deprecated.- Specified by:
getPreProcessor
in interfaceSentenceIterator
-
setPreProcessor
public void setPreProcessor(SentencePreProcessor preProcessor)
Deprecated.- Specified by:
setPreProcessor
in interfaceSentenceIterator
-
-