ros_embedding: Rosette API text embedding service

Description Usage Arguments Examples

View source: R/embed.r

Description

Provides the embedding for the input text. Returns a single vector of floating point numbers for your input, known as a text embedding. Among other uses, a text embedding enables you to calculate the similarity between two documents or two words.

Usage

1
ros_embedding(content, genre = NULL, language = NULL)

Arguments

content

either a URI or character vector of content to process

genre

document genre (optional)

language

Language: ISO 639-3 code (optional)

Examples

1
ros_embedding("Cambridge, Massachusetts")

hrbrmstr/rosette documentation built on May 17, 2019, 5:13 p.m.