cats bugfix

This commit is contained in:
svlandeg 2020-06-12 15:49:38 +02:00
parent 880dccf93e
commit a5ee082da1

View File

@ -101,6 +101,8 @@ def _annot2array(vocab, tok_annot, doc_annot):
raise ValueError(Errors.E984) raise ValueError(Errors.E984)
ent_kb_ids = _parse_links(vocab, words, value, entities) ent_kb_ids = _parse_links(vocab, words, value, entities)
tok_annot["ENT_KB_ID"] = ent_kb_ids tok_annot["ENT_KB_ID"] = ent_kb_ids
elif key == "cats":
pass
else: else:
raise ValueError(f"Unknown doc attribute: {key}") raise ValueError(f"Unknown doc attribute: {key}")