mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-29 11:26:28 +03:00
Set defaults for light and flat kwargs
This commit is contained in:
parent
c5669450a0
commit
bd428c0a70
|
@ -32,8 +32,8 @@ def format_POS(token, light, flat):
|
||||||
subtree.pop("modifiers")
|
subtree.pop("modifiers")
|
||||||
return subtree
|
return subtree
|
||||||
|
|
||||||
def POS_tree(root, light, flat):
|
|
||||||
|
|
||||||
|
def POS_tree(root, light=False, flat=False):
|
||||||
"""
|
"""
|
||||||
Helper: generate a POS tree for a root token. The doc must have
|
Helper: generate a POS tree for a root token. The doc must have
|
||||||
merge_ents(doc) ran on it.
|
merge_ents(doc) ran on it.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user