documentEmbedding
R2026bDescription
A document embedding maps documents to real vectors.
The vectors attempt to capture the semantic content of the full document, so similar documents have similar vectors. The document can be a sentence, a paragraph, or a longer text.
Creation
Create a document embedding from a pretrained embedding using
documentEmbedding.
Description
returns a document
embedding using the all-MiniLM-L6-v2 sentence transformers model.emb = documentEmbedding
This function requires Deep Learning Toolbox™. This syntax requires the Text Analytics Toolbox™ Model for all-MiniLM-L6-v2 Network support package.
returns the document embedding model specified by the emb = documentEmbedding(Model=modelName)Model name-value
argument.
Input Arguments
Properties
Object Functions
embed | Map document to embedding vector |
Examples
References
[1] Reimers, Nils, and Iryna Gurevych. "Sentence-BERT: Sentence Embeddings Using Siamese BERT-Networks" Preprint, submitted August 27, 2019. https://doi.org/10.48550/arXiv.1908.10084.