sparknlp.functions.map_annotations_array

sparknlp.functions.map_annotations_array(f, output_type: pyspark.sql.types.DataType)[source]

Creates a Spark UDF to map over an Annotator’s array results.

Parameters
ffunction

The function to be applied over the results

output_typepyspark.sql.types.DataType

Output type of the data

Returns
pyspark.sql.functions.udf()

Spark UserDefinedFunction (udf)