Skip to content

The newly split tokens must match the text of the original token. New orths: coComo. Old text: Como. #19

@sontek

Description

@sontek

I'm getting this error when I try to use spacy-affixes on my already existing library. Do you know what would cause this and how to fix it?

    doc = self.nlp(text)
../../../.local/share/virtualenvs/backend-C76VZmPc/lib/python3.7/site-packages/spacy/language.py:435: in __call__
    doc = proc(doc, **component_cfg.get(name, {}))
../../../.local/share/virtualenvs/backend-C76VZmPc/lib/python3.7/site-packages/spacy_affixes/main.py:163: in __call__
    self.apply_rules(retokenizer, token, rule)
../../../.local/share/virtualenvs/backend-C76VZmPc/lib/python3.7/site-packages/spacy_affixes/main.py:140: in apply_rules
    token, [*rule["affix_text"], token_sub], heads

the text is:

Como todos lo han hecho durante tanto tiempo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions