View source: R/word-embeddings.R
nlp_word_embeddings_model | R Documentation |
This function creates a WordEmbeddingsModel which uses the provided embeddings_ref.
nlp_word_embeddings_model( sc, input_cols, output_col, storage_ref = NULL, dimension, case_sensitive = NULL, include_storage = NULL, lazy_annotator = NULL, read_cache_size = NULL, include_embeddings = NULL, uid = random_string("word_embeddings_") )
sc |
Spark connection |
input_cols |
Input columns. String array. |
output_col |
Output column. String. |
storage_ref |
binding to NerDLModel trained by that embeddings |
dimension |
number of word embeddings dimensions |
case_sensitive |
whether to ignore case in tokens for embeddings matching |
include_storage |
include the storage |
lazy_annotator |
boolean for laziness |
read_cache_size |
size for the read cache |
include_embeddings |
whether or not to include word embeddings when saving this annotator to disk (single or within pipeline) |
uid |
unique identifier for this instance |
a Spark transformer WordEmbeddingsModel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.