Fix off-by-one in number of tags

This commit is contained in:
Matthew Honnibal 2017-06-03 13:29:23 -05:00
parent e62f46d39f
commit 805495af27
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}