protected static class WordVectorSerializer.BinaryReader extends java.lang.Object implements WordVectorSerializer.Reader
Modifier and Type | Field and Description |
---|---|
protected java.util.concurrent.atomic.AtomicInteger |
idxCounter |
protected java.lang.String |
nextWord |
protected int |
numWords |
protected java.io.DataInputStream |
stream |
protected int |
vectorLength |
Modifier | Constructor and Description |
---|---|
protected |
BinaryReader(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasNext() |
Pair<VocabWord,float[]> |
next() |
protected java.io.DataInputStream stream
protected java.lang.String nextWord
protected int numWords
protected int vectorLength
protected java.util.concurrent.atomic.AtomicInteger idxCounter
public boolean hasNext()
hasNext
in interface WordVectorSerializer.Reader
public Pair<VocabWord,float[]> next()
next
in interface WordVectorSerializer.Reader
public void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
java.lang.Exception