PatternTimeoutError#

exception scikitplot.cleanprompt.PatternTimeoutError(message, detector, pack, kind, seconds)[source]#

A custom pack pattern ran past the pattern time limit on one document.

Parameters:
messagestr

Human-readable description. Names the pack and the kind, never the text being scanned.

detectorstr

The detector, pack:NAME:KIND.

packstr

The pack the pattern came from.

kindstr

The pattern’s kind.

secondsfloat

The limit that was exceeded.

Parameters:
Return type:

None

Notes

User notes. The document is not cleaned: nothing is returned for it, so nothing half-redacted can be sent. Rewrite the pattern (doctor and the pattern-risk check say which shapes backtrack), raise the limit, or leave the pack out.

Annotation:

Unrecognized objtype: exception

Parameters:
Return type:

None