mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-28 02:46:35 +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")
|
||||
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
|
||||
merge_ents(doc) ran on it.
|
||||
|
|
Loading…
Reference in New Issue
Block a user