Modifier and Type | Method and Description |
---|---|
static Word2Vec |
WordVectorSerializer.loadFullModel(String path)
This method loads full w2v model, previously saved with writeFullMethod call
|
Modifier and Type | Method and Description |
---|---|
static void |
WordVectorSerializer.writeFullModel(Word2Vec vec,
String path)
Saves full Word2Vec model in the way, that allows model updates without being rebuilt from scratches
|
static void |
WordVectorSerializer.writeTsneFormat(Word2Vec vec,
org.nd4j.linalg.api.ndarray.INDArray tsne,
File csv)
Write the tsne format
|
static void |
WordVectorSerializer.writeWordVectors(Word2Vec vec,
BufferedWriter writer)
Writes the word vectors to the given BufferedWriter.
|
static void |
WordVectorSerializer.writeWordVectors(Word2Vec vec,
File file)
Writes the word vectors to the given path.
|
static void |
WordVectorSerializer.writeWordVectors(Word2Vec vec,
OutputStream outputStream)
Writes the word vectors to the given OutputStream.
|
static void |
WordVectorSerializer.writeWordVectors(Word2Vec vec,
String path)
Writes the word vectors to the given path.
|
Modifier and Type | Class and Description |
---|---|
class |
ParagraphVectors
Basic ParagraphVectors (aka Doc2Vec) implementation for DL4j, as wrapper over SequenceVectors
|
Modifier and Type | Method and Description |
---|---|
Word2Vec |
Word2Vec.Builder.build() |
Modifier and Type | Method and Description |
---|---|
Word2Vec |
Word2VecDataFetcher.getVec() |
Constructor and Description |
---|
Word2VecDataFetcher(String path,
Word2Vec vec,
List<String> labels) |
Word2VecDataSetIterator(Word2Vec vec,
LabelAwareSentenceIterator iter,
List<String> labels)
Initializes this iterator with homogenization and adding labels
and a batch size of 10
|
Word2VecDataSetIterator(Word2Vec vec,
LabelAwareSentenceIterator iter,
List<String> labels,
int batch)
Initializes this iterator with homogenization and adding labels
|
Word2VecDataSetIterator(Word2Vec vec,
LabelAwareSentenceIterator iter,
List<String> labels,
int batch,
boolean homogenization,
boolean addLabels)
Allows for customization of all of the params of the iterator
|
Modifier and Type | Method and Description |
---|---|
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)
Converts a window (each word in the window)
in to a vector.
|
static org.nd4j.linalg.api.ndarray.INDArray |
WordConverter.toInputMatrix(List<Window> windows,
Word2Vec vec) |
Constructor and Description |
---|
WordConverter(List<String> sentences,
Word2Vec vec) |
Copyright © 2016. All Rights Reserved.