mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
* Load tag for specials.json token
This commit is contained in:
parent
13520e6cf0
commit
7237c805c7
|
@ -249,7 +249,7 @@ cdef class Tokenizer:
|
|||
tokens[i].lemma = 0
|
||||
if 'pos' in props:
|
||||
# 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]
|
||||
# These are defaults, which can be over-ridden by the
|
||||
# token-specific props.
|
||||
|
|
Loading…
Reference in New Issue
Block a user