protected static class WordVectorSerializer.BinaryReader extends Object implements WordVectorSerializer.Reader
| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
idxCounter |
protected String |
nextWord |
protected int |
numWords |
protected DataInputStream |
stream |
protected int |
vectorLength |
| Modifier | Constructor and Description |
|---|---|
protected |
BinaryReader(@NonNull File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
org.nd4j.common.primitives.Pair<VocabWord,float[]> |
next() |
protected DataInputStream stream
protected String nextWord
protected int numWords
protected int vectorLength
protected AtomicInteger idxCounter
protected BinaryReader(@NonNull
@NonNull File file)
public boolean hasNext()
hasNext in interface WordVectorSerializer.Readerpublic org.nd4j.common.primitives.Pair<VocabWord,float[]> next()
next in interface WordVectorSerializer.Readerpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2021. All rights reserved.