edsnlp.pipelines.core.normalizer.spaces.factory
create_component(nlp, name, newline=True)
Create a new component to update the tag_
attribute of tokens.
We assign "SPACE" to token.tag
to be used by optimized components
such as the EDSPhraseMatcher
PARAMETER | DESCRIPTION |
---|---|
newline |
Whether to update the newline tokens too
TYPE:
|
Source code in edsnlp/pipelines/core/normalizer/spaces/factory.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|