nlp_word_embeddings_pretrained: Load pretrained word embeddings

View source: R/word-embeddings.R

nlp_word_embeddings_pretrainedR Documentation

Load pretrained word embeddings

Description

Loads pretrained word embeddings into a Spark NLP annotator

Usage

nlp_word_embeddings_pretrained(
  sc,
  input_cols = NULL,
  output_col,
  name = NULL,
  lang = NULL,
  remote_loc = NULL,
  case_sensitive = NULL
)

Arguments

sc

A Spark connection

input_cols

Input columns. String array.

output_col

Output column. String.

name

the name of the model to load. If NULL will use the default value

lang

the language of the model to be loaded. If NULL will use the default value

remote_loc

the remote location of the model. If NULL will use the default value

case_sensitive

whether to treat the words as case sensitive

Value

The Spark NLP model with the pretrained model loaded


r-spark/sparknlp documentation built on Oct. 15, 2022, 10:50 a.m.