Modifier and Type | Method and Description |
---|---|
static Word2Vec |
WordVectorSerializer.fromPair(Pair<InMemoryLookupTable,VocabCache> pair)
Load word vectors from the given pair
|
static Word2Vec |
WordVectorSerializer.loadFullModel(String path)
Deprecated.
|
static Word2Vec |
WordVectorSerializer.loadGoogleModel(File modelFile,
boolean binary)
Deprecated.
|
static Word2Vec |
WordVectorSerializer.loadGoogleModel(File modelFile,
boolean binary,
boolean lineBreaks)
Deprecated.
|
static Word2Vec |
WordVectorSerializer.readWord2Vec(File file)
Deprecated.
|
static Word2Vec |
WordVectorSerializer.readWord2VecFromText(File vectors,
File hs,
File h_codes,
File h_points,
VectorsConfiguration configuration)
This method allows you to read ParagraphVectors from externaly originated vectors and syn1.
|
static Word2Vec |
WordVectorSerializer.readWord2VecModel(File file)
This method
1) Binary model, either compressed or not.
|
static Word2Vec |
WordVectorSerializer.readWord2VecModel(File file,
boolean extendedModel)
This method
1) Binary model, either compressed or not.
|
Modifier and Type | Method and Description |
---|---|
static void |
WordVectorSerializer.writeFullModel(Word2Vec vec,
String path)
Deprecated.
|
static void |
WordVectorSerializer.writeTsneFormat(Word2Vec vec,
org.nd4j.linalg.api.ndarray.INDArray tsne,
File csv)
Write the tsne format
|
static void |
WordVectorSerializer.writeWord2VecModel(Word2Vec vectors,
File file)
This method saves Word2Vec model into compressed zip file and sends it to output stream
PLEASE NOTE: This method saves FULL model, including syn0 AND syn1
|
static void |
WordVectorSerializer.writeWord2VecModel(Word2Vec vectors,
OutputStream stream)
This method saves Word2Vec model into compressed zip file and sends it to output stream
PLEASE NOTE: This method saves FULL model, including syn0 AND syn1
|
static void |
WordVectorSerializer.writeWord2VecModel(Word2Vec vectors,
String path)
This method saves Word2Vec model into compressed zip file and sends it to output stream
PLEASE NOTE: This method saves FULL model, including syn0 AND syn1
|
static void |
WordVectorSerializer.writeWordVectors(Word2Vec vec,
BufferedWriter writer)
Deprecated.
|
static void |
WordVectorSerializer.writeWordVectors(Word2Vec vec,
File file)
Deprecated.
|
static void |
WordVectorSerializer.writeWordVectors(Word2Vec vec,
OutputStream outputStream)
Deprecated.
|
static void |
WordVectorSerializer.writeWordVectors(Word2Vec vec,
String path)
Deprecated.
|
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.