mirror of https://github.com/explosion/spaCy.git
Fix off-by-one in number of tags
This commit is contained in:
parent
e62f46d39f
commit
805495af27
|
@ -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 = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue