From a2bc743e4732338e1b19f87ae1e7e2303ffac2bd Mon Sep 17 00:00:00 2001 From: Santiago Castro Date: Fri, 25 Jun 2021 18:58:38 -0700 Subject: [PATCH] Fix typo in comment --- spacy/pipeline/attributeruler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline/attributeruler.py b/spacy/pipeline/attributeruler.py index 79ec9c993..a6efd5906 100644 --- a/spacy/pipeline/attributeruler.py +++ b/spacy/pipeline/attributeruler.py @@ -106,7 +106,7 @@ class AttributeRuler(Pipe): def match(self, doc: Doc): matches = self.matcher(doc, allow_missing=True) - # Sort by the attribute ID, so that later rules have precendence + # Sort by the attribute ID, so that later rules have precedence matches = [ (int(self.vocab.strings[m_id]), m_id, s, e) for m_id, s, e in matches ]