veil.pipeline

Classes

Pipeline(config)

Build and execute a masking pipeline based on a config object.

class veil.pipeline.Pipeline(config)[source]

Bases: object

Build and execute a masking pipeline based on a config object.

Parameters:

config (PipelineConfig)

process(doc, entity_cache=None)[source]

Ejecuta el pipeline completo sobre un texto.

Parameters:
  • doc (Document)

  • entity_cache (Dict[str, Dict[int, Set[str]]] | None)

Return type:

MaskResult