Skip to content

edsnlp.pipes.core.normalizer.spaces.factory

create_component = registry.factory.register('eds.spaces', assigns=['token.tag'], deprecated=['spaces'])(SpacesTagger) module-attribute [source]

We assign "SPACE" to token.tag to be used by optimized components such as the EDSPhraseMatcher

Parameters

PARAMETER DESCRIPTION
nlp

The pipeline object.

TYPE: Optional[PipelineProtocol] DEFAULT: None

name

The component name.

TYPE: Optional[str] DEFAULT: None

newline

Whether to update the newline tokens too

TYPE: bool DEFAULT: True