Store tag map before normalizing props

This commit is contained in:
Matthew Honnibal 2017-05-29 17:53:48 -05:00
parent b92a89f87b
commit 11840ff5dd
1 changed files with 1 additions and 1 deletions

View File

@ -44,8 +44,8 @@ cdef class Morphology:
self.rich_tags = <RichTagC*>self.mem.alloc(self.n_tags, sizeof(RichTagC))
for i, (tag_str, attrs) in enumerate(sorted(tag_map.items())):
attrs = _normalize_props(attrs)
self.tag_map[tag_str] = dict(attrs)
attrs = _normalize_props(attrs)
attrs = intify_attrs(attrs, self.strings, _do_deprecated=True)
self.rich_tags[i].id = i
self.rich_tags[i].name = self.strings.add(tag_str)