From b6b96b233c5e7f708dad13e1cbe6691eea278ebe Mon Sep 17 00:00:00 2001 From: Wolfgang Seeker Date: Mon, 2 May 2016 15:29:30 +0200 Subject: [PATCH] don't require read_json_file to expect particular annotations --- spacy/gold.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/gold.pyx b/spacy/gold.pyx index 8f326d234..c3badc60d 100644 --- a/spacy/gold.pyx +++ b/spacy/gold.pyx @@ -153,7 +153,7 @@ def read_json_file(loc, docs_filter=None): ids.append(i) tags.append(token.get('tag','-')) heads.append(token.get('head',0) + i) - labels.append(token.get('dep','ROOT')) + labels.append(token.get('dep','')) # Ensure ROOT label is case-insensitive if labels[-1].lower() == 'root': labels[-1] = 'ROOT'