public class WordConverter extends Object
Constructor and Description |
---|
WordConverter(List<String> sentences,
Word2Vec vec) |
Modifier and Type | Method and Description |
---|---|
org.nd4j.linalg.api.ndarray.INDArray |
toInputMatrix() |
static org.nd4j.linalg.api.ndarray.INDArray |
toInputMatrix(List<Window> windows,
Word2Vec vec) |
org.nd4j.linalg.api.ndarray.INDArray |
toLabelMatrix(List<String> labels) |
static org.nd4j.linalg.api.ndarray.INDArray |
toLabelMatrix(List<String> labels,
List<Window> windows) |
public static org.nd4j.linalg.api.ndarray.INDArray toInputMatrix(List<Window> windows, Word2Vec vec)
public org.nd4j.linalg.api.ndarray.INDArray toInputMatrix()
public static org.nd4j.linalg.api.ndarray.INDArray toLabelMatrix(List<String> labels, List<Window> windows)
Copyright © 2016. All Rights Reserved.