nlp_generate_colln: Generate a CoNLL format file from a data frame using an...

View source: R/annotation_tool_json_reader.R

nlp_generate_collnR Documentation

Generate a CoNLL format file from a data frame using an AnnotationToolJsonReader

Description

Generate a CoNLL format file from a data frame using an AnnotationToolJsonReader

Usage

nlp_generate_colln(
  reader,
  df,
  path,
  task_col = "task_id",
  token_col = "token",
  ner_label = "ner_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


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