Package | Description |
---|---|
org.deeplearning4j.models.word2vec.iterator | |
org.deeplearning4j.text.movingwindow |
Modifier and Type | Method and Description |
---|---|
List<Window> |
Word2VecDataFetcher.getCache() |
Modifier and Type | Method and Description |
---|---|
static Window |
Windows.windowForWordInPosition(int windowSize,
int wordPos,
List<String> sentence)
Creates a sliding window from text
|
Modifier and Type | Method and Description |
---|---|
static List<Window> |
Windows.windows(InputStream words,
int windowSize)
Constructs a list of window of size windowSize.
|
static List<Window> |
Windows.windows(InputStream words,
TokenizerFactory tokenizerFactory,
int windowSize)
Constructs a list of window of size windowSize.
|
static List<Window> |
Windows.windows(List<String> words,
int windowSize)
Constructs a list of window of size windowSize
|
static List<Window> |
Windows.windows(String words)
Constructs a list of window of size windowSize.
|
static List<Window> |
Windows.windows(String words,
int windowSize)
Constructs a list of window of size windowSize.
|
static List<Window> |
Windows.windows(String words,
TokenizerFactory tokenizerFactory)
Constructs a list of window of size windowSize.
|
static List<Window> |
Windows.windows(String words,
TokenizerFactory tokenizerFactory,
int windowSize)
Constructs a list of window of size windowSize.
|
Modifier and Type | Method and Description |
---|---|
static double[] |
WindowConverter.asExample(Window window,
Word2Vec vec)
Converts a window (each word in the window)
in to a vector.
|
static org.nd4j.linalg.api.ndarray.INDArray |
WindowConverter.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 |
WindowConverter.asExampleMatrix(Window window,
Word2Vec vec) |
Modifier and Type | Method and Description |
---|---|
static org.nd4j.linalg.api.ndarray.INDArray |
WordConverter.toInputMatrix(List<Window> windows,
Word2Vec vec) |
static org.nd4j.linalg.api.ndarray.INDArray |
WordConverter.toLabelMatrix(List<String> labels,
List<Window> windows) |
Copyright © 2014. All rights reserved.