From 805495af279cba209996432617fc0684982cbb4a Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 3 Jun 2017 13:29:23 -0500 Subject: [PATCH] Fix off-by-one in number of tags --- spacy/morphology.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/morphology.pyx b/spacy/morphology.pyx index 50bec3115..b79fcaeef 100644 --- a/spacy/morphology.pyx +++ b/spacy/morphology.pyx @@ -38,7 +38,7 @@ cdef class Morphology: self.strings = string_store self.tag_map = {} self.lemmatizer = lemmatizer - self.n_tags = len(tag_map) + 1 + self.n_tags = len(tag_map) self.tag_names = tuple(sorted(tag_map.keys())) self.reverse_index = {}