nlp_generate_assertion_train_set: Generate an assertion training set from an...

View source: R/annotation_tool_json_reader.R

nlp_generate_assertion_train_setR Documentation

Generate an assertion training set from an AnnotationToolJsonReader

Description

Generate an assertion training set from an AnnotationToolJsonReader

Usage

nlp_generate_assertion_train_set(
  reader,
  df,
  sentence_col = "sentence",
  assertion_col = "assertion_label"
)

Arguments

reader

an instance of AnnotationToolJsonReader nlp_annotation_tool_json_reader

df

a Spark Dataframe

sentence_col

the name of the sentence column

assertion_col

the name of the assertion column

Value

assertion training set data frame


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