Doc2Vec
Document vectors with ParagraphVectors (Doc2Vec) — training document embeddings and document similarity
When to Use ParagraphVectors
Maven Dependency
<dependency>
<groupId>org.deeplearning4j</groupId>
<artifactId>deeplearning4j-nlp</artifactId>
<version>1.0.0-rewrite</version>
</dependency>Core Concepts
Labels
LabelAwareIterator
Training ParagraphVectors
Option 1 — Directory-Based Training (Files as Labels)
Option 2 — In-Memory Documents with Labels
Option 3 — UIMA-Based Label-Aware Iterator
ParagraphVectors.Builder Parameters
Parameter
Method
Description
Querying Document Vectors
Get the Vector for a Training Label
Similarity Between Two Labels
Nearest Labels to a Query Label
Words Nearest to a Label
Inferring Vectors for New Documents
Classifying a New Document
Document Similarity Search
Saving and Loading
Save
Load
Full Classification Example
Further Reading
Last updated
Was this helpful?