You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
se obtiene el siguiente stack trace, el archivo usado no es compartible
Traceback (most recent call last):
File "tasks.py", line 213, in
globals()args[1]
File "tasks.py", line 83, in anonymize_doc
anonymized_text = anonymize_text(nlp, text, not args.save_file)
File "/users/vdumas/anonimizacion-texto-libre-fix_error_overlaping_spans/model_utils.py", line 133, in anonymize_text
doc = nlp.generate_doc(sanitize_text(text))
File "/users/vdumas/anonimizacion-texto-libre-fix_error_overlaping_spans/model_utils.py", line 30, in generate_doc
return self.nlp(text)
File "/users/vdumas/venv/lib/python3.8/site-packages/spacy/language.py", line 1000, in call
error_handler(name, proc, [doc], e)
File "/users/vdumas/venv/lib/python3.8/site-packages/spacy/util.py", line 1503, in raise_error
raise e
File "/users/vdumas/venv/lib/python3.8/site-packages/spacy/language.py", line 995, in call
doc = proc(doc, **component_cfg.get(name, {}))
File "/users/vdumas/anonimizacion-texto-libre-fix_error_overlaping_spans/pipeline_components/entity_custom.py", line 357, in entity_custom
if is_phone_token(token):
File "/users/vdumas/anonimizacion-texto-libre-fix_error_overlaping_spans/pipeline_components/entity_custom.py", line 301, in is_phone_token
or (token.nbor(-1).text == "(" and token.nbor(1).text == ")")
File "spacy/tokens/token.pyx", line 184, in spacy.tokens.token.Token.nbor
IndexError: [E042] Error accessing doc[0].nbor(-1), for doc of length 19.
The text was updated successfully, but these errors were encountered:
se obtiene el siguiente stack trace, el archivo usado no es compartible
Traceback (most recent call last):
File "tasks.py", line 213, in
globals()args[1]
File "tasks.py", line 83, in anonymize_doc
anonymized_text = anonymize_text(nlp, text, not args.save_file)
File "/users/vdumas/anonimizacion-texto-libre-fix_error_overlaping_spans/model_utils.py", line 133, in anonymize_text
doc = nlp.generate_doc(sanitize_text(text))
File "/users/vdumas/anonimizacion-texto-libre-fix_error_overlaping_spans/model_utils.py", line 30, in generate_doc
return self.nlp(text)
File "/users/vdumas/venv/lib/python3.8/site-packages/spacy/language.py", line 1000, in call
error_handler(name, proc, [doc], e)
File "/users/vdumas/venv/lib/python3.8/site-packages/spacy/util.py", line 1503, in raise_error
raise e
File "/users/vdumas/venv/lib/python3.8/site-packages/spacy/language.py", line 995, in call
doc = proc(doc, **component_cfg.get(name, {}))
File "/users/vdumas/anonimizacion-texto-libre-fix_error_overlaping_spans/pipeline_components/entity_custom.py", line 357, in entity_custom
if is_phone_token(token):
File "/users/vdumas/anonimizacion-texto-libre-fix_error_overlaping_spans/pipeline_components/entity_custom.py", line 301, in is_phone_token
or (token.nbor(-1).text == "(" and token.nbor(1).text == ")")
File "spacy/tokens/token.pyx", line 184, in spacy.tokens.token.Token.nbor
IndexError: [E042] Error accessing
doc[0].nbor(-1)
, for doc of length 19.The text was updated successfully, but these errors were encountered: