From c6c3162c5031933fc26932668772a501fc7869de Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 17 Apr 2017 00:00:27 +0200 Subject: [PATCH] Fix lightning tour example (closes #889) --- website/docs/usage/lightning-tour.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/usage/lightning-tour.jade b/website/docs/usage/lightning-tour.jade index 31982d516..967d0c61e 100644 --- a/website/docs/usage/lightning-tour.jade +++ b/website/docs/usage/lightning-tour.jade @@ -137,7 +137,7 @@ p return word.ent_type != 0 def count_parent_verb_by_person(docs): - counts = defaultdict(defaultdict(int)) + counts = defaultdict(lambda: defaultdict(int)) for doc in docs: for ent in doc.ents: if ent.label_ == 'PERSON' and ent.root.head.pos == VERB: