embed_text | R Documentation |
turns character vector into length(text) x 512
embedding matrix.
For power users. Requires init_sentiment.ai()
to have been called!
embed_text(text, batch_size = NULL, model = NULL)
text |
character vector to be embedded. Note that longer comments take longer. |
batch_size |
integer - how many to embed at once. Higher numbers are faster but use more memory. |
model |
character - the embedding model to use (same as |
numeric matrix of length(text) x 512
. Original text is stored in the row names attribute.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.