* Load tag for specials.json token

This commit is contained in:
Matthew Honnibal 2015-03-15 19:24:47 -04:00
parent 13520e6cf0
commit 7237c805c7

View File

@ -249,7 +249,7 @@ cdef class Tokenizer:
tokens[i].lemma = 0 tokens[i].lemma = 0
if 'pos' in props: if 'pos' in props:
# TODO: Clean up this mess... # TODO: Clean up this mess...
tokens[i].tag = tag_names.index(props['pos']) tokens[i].tag = self.vocab.strings[props['pos']]
tokens[i].pos = tag_map[props['pos']][0] tokens[i].pos = tag_map[props['pos']][0]
# These are defaults, which can be over-ridden by the # These are defaults, which can be over-ridden by the
# token-specific props. # token-specific props.