sparknlp.common.annotator_properties#

Contains the base classes for Annotator properties.

Module Contents#

Classes#

AnnotatorProperties

Components that take parameters. This also provides an internal

class AnnotatorProperties[source]#

Components that take parameters. This also provides an internal param map to store parameter values attached to the instance.

New in version 1.3.0.

setInputCols(*value)[source]#

Sets column names of input annotations.

Parameters:
*valueList[str]

Input columns for the annotator

getInputCols()[source]#

Gets current column names of input annotations.

setOutputCol(value)[source]#

Sets output column name of annotations.

Parameters:
valuestr

Name of output column

getOutputCol()[source]#

Gets output column name of annotations.

setLazyAnnotator(value)[source]#

Sets whether Annotator should be evaluated lazily in a RecursivePipeline.

Parameters:
valuebool

Whether Annotator should be evaluated lazily in a RecursivePipeline

getLazyAnnotator()[source]#

Gets whether Annotator should be evaluated lazily in a RecursivePipeline.