mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +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
|
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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user