From df68bf45ceed4bed189820a22a3a20db0c56c098 Mon Sep 17 00:00:00 2001 From: ines Date: Sat, 13 May 2017 12:32:23 +0200 Subject: [PATCH] Set defaults for light and flat kwargs --- spacy/tokens/printers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.