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.Reader
public org.nd4j.common.primitives.Pair<VocabWord,float[]> next()
next
in interface WordVectorSerializer.Reader
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2021. All rights reserved.