Skip to content

edsnlp.pipes.core.normalizer.spaces.factory

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

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]

name

The component name.

TYPE: Optional[str]

newline

Whether to update the newline tokens too

TYPE: bool DEFAULT: True