Class SequenceVectors.AsyncSequencer
- java.lang.Object
-
- java.lang.Thread
-
- org.deeplearning4j.models.sequencevectors.SequenceVectors.AsyncSequencer
-
- All Implemented Interfaces:
Runnable
- Enclosing class:
- SequenceVectors<T extends SequenceElement>
protected class SequenceVectors.AsyncSequencer extends Thread implements Runnable
This class is used to fetch data from iterator in background thread, and convert it to ListIt becomes very usefull if text processing pipeline behind iterator is complex, and we're not loading data from simple text file with whitespaces as separator. Since this method allows you to hide preprocessing latency in background. This mechanics will be change to PrefetchingSentenceIterator wrapper.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description AsyncSequencer(SequenceIterator<T> iterator, @NonNull Collection<String> stopList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreLines()
Sequence<T>
nextSentence()
void
run()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
AsyncSequencer
public AsyncSequencer(SequenceIterator<T> iterator, @NonNull @NonNull Collection<String> stopList)
-
-