From a5ee082da1c1f4c01af2dc84d6bfe8195012c5f7 Mon Sep 17 00:00:00 2001 From: svlandeg Date: Fri, 12 Jun 2020 15:49:38 +0200 Subject: [PATCH] cats bugfix --- spacy/gold/new_example.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/gold/new_example.pyx b/spacy/gold/new_example.pyx index d2492a29f..e7506d697 100644 --- a/spacy/gold/new_example.pyx +++ b/spacy/gold/new_example.pyx @@ -101,6 +101,8 @@ def _annot2array(vocab, tok_annot, doc_annot): raise ValueError(Errors.E984) ent_kb_ids = _parse_links(vocab, words, value, entities) tok_annot["ENT_KB_ID"] = ent_kb_ids + elif key == "cats": + pass else: raise ValueError(f"Unknown doc attribute: {key}")