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: |
name | The component name. TYPE: |
newline | Whether to update the newline tokens too TYPE: |