From 352b91835648d98c564fb0686641dec3e8c9b141 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Thu, 30 Jul 2020 10:23:23 +0200 Subject: [PATCH] Update name in error message --- spacy/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/errors.py b/spacy/errors.py index 04005e1e6..e90e6bf08 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -605,7 +605,7 @@ class Errors: 'cfg = {"tokenizer": {"segmenter": "pkuseg", "pkuseg_model": name_or_path}}\n' 'nlp = Chinese(config=cfg)') E1001 = ("Target token outside of matched span for match with tokens " - "'{span}' and offset '{offset}' matched by patterns '{patterns}'.") + "'{span}' and offset '{index}' matched by patterns '{patterns}'.") @add_codes