nlp_assertion_dl_pretrained: Load a pretrained Spark NLP Assertion DL model

View source: R/assertion_dl.R

nlp_assertion_dl_pretrainedR Documentation

Load a pretrained Spark NLP Assertion DL model

Description

Create a pretrained Spark NLP AssertionDLModel model

Usage

nlp_assertion_dl_pretrained(
  sc,
  input_cols,
  output_col,
  batch_size = NULL,
  scope_window = NULL,
  max_sent_len = NULL,
  storage_ref = NULL,
  name = NULL,
  lang = NULL,
  remote_loc = NULL
)

Arguments

sc

A Spark connection

input_cols

Input columns. String array.

output_col

Output column. String.

batch_size

Parameter, which regulates the size of the batch

scope_window

The scope window of the assertion (whole sentence by default)

max_sent_len

Parameter, which regulates the length of the longest sentence

storage_ref

storage reference for embeddings

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

Value

The Spark NLP model with the pretrained model loaded


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