sparknlp_jsl.utils.exception_handling_utils#

Util functions for exception handling in Spark NLP pipelines.

Module Contents#

Functions#

apply_exception_handling(pipeline[, stage, all])

Sets setDoExceptionHandling(True) for specified or all stages in a Spark NLP pipeline.

apply_exception_handling(pipeline, stage: list = None, all: bool = True)#

Sets setDoExceptionHandling(True) for specified or all stages in a Spark NLP pipeline.

Parameters:
  • pipeline – Spark NLP Pipeline or PipelineModel object

  • stage – List of stage indices to set exception handling (if parameter exists)

  • all – If True, applies to all stages with the parameter. ( Default: True )