diff --git a/spacy/tokens/printers.py b/spacy/tokens/printers.py index 1cadfc5bf..8ab111120 100644 --- a/spacy/tokens/printers.py +++ b/spacy/tokens/printers.py @@ -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.