public class WindowConverter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.nd4j.linalg.api.ndarray.INDArray |
asExampleArray(Window window,
Word2Vec vec,
boolean normalize)
Converts a window (each word in the window)
in to a vector.
|
static org.nd4j.linalg.api.ndarray.INDArray |
asExampleMatrix(Window window,
Word2Vec vec)
Converts a window (each word in the window)
in to a vector.
|
public static org.nd4j.linalg.api.ndarray.INDArray asExampleArray(Window window, Word2Vec vec, boolean normalize)
window
- the window to take in.vec
- the model to use as a lookup tablepublic static org.nd4j.linalg.api.ndarray.INDArray asExampleMatrix(Window window, Word2Vec vec)
window
- the window to take in.vec
- the model to use as a lookup table