mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
* Ensure tagging is applied if parse=True
This commit is contained in:
parent
97a9bc6f61
commit
dd56e298e2
|
@ -112,7 +112,7 @@ class English(object):
|
||||||
tokens (spacy.tokens.Tokens):
|
tokens (spacy.tokens.Tokens):
|
||||||
"""
|
"""
|
||||||
tokens = self.tokenizer(text)
|
tokens = self.tokenizer(text)
|
||||||
if tag:
|
if tag or parse:
|
||||||
self.tagger(tokens)
|
self.tagger(tokens)
|
||||||
if parse:
|
if parse:
|
||||||
self.parser(tokens)
|
self.parser(tokens)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user