sparknlp_jsl.utils.exception_handling_utils
#
Util functions for exception handling in Spark NLP pipelines.
Module Contents#
Functions#
|
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 )