nlp_generate_plain_assertion_train_set: Generate a plain assertion training set from an...

View source: R/annotation_tool_json_reader.R

nlp_generate_plain_assertion_train_setR Documentation

Generate a plain assertion training set from an AnnotationToolJsonReader

Description

Generate a plain assertion training set from an AnnotationToolJsonReader

Usage

nlp_generate_plain_assertion_train_set(
  reader,
  df,
  task_col = "task_id",
  token_col = "token",
  ner_label = "ner_label",
  assertion_label = "assertion_label"
)

Arguments

reader

an instance of AnnotationToolJsonReader nlp_annotation_tool_json_reader

df

a Spark Dataframe

task_col

the name of the task column

token_col

the name of the token column

ner_label

the name of the ner label 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.