Skip to content

edsnlp.pipes.core.normalizer.remove_lowercase.factory

remove_lowercase [source]

Add case on the NORM custom attribute. Should always be applied first.

Parameters

PARAMETER DESCRIPTION
doc

The spaCy Doc object.

TYPE: Doc

RETURNS DESCRIPTION
Doc

The document, with case put back in NORM.

create_component [source]

Add case on the NORM custom attribute. Should always be applied first.

Parameters

PARAMETER DESCRIPTION
nlp

The pipeline object.

TYPE: PipelineProtocol

name

The name of the component.

TYPE: str