We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1befd93 commit 837d595Copy full SHA for 837d595
famplex/load.py
@@ -51,7 +51,7 @@ def _construct_grounding_map(rows):
51
for row in rows:
52
text = row[0]
53
db_refs = {'TEXT': text}
54
- db_refs.update({ns: id_ for ns, id_ in zip(row[1::2], row[2::2])})
+ db_refs.update({ns: id_ for ns, id_ in zip(row[1::2], row[2::2]) if ns})
55
gmap[text] = db_refs if len(db_refs) > 1 else None
56
return gmap
57
0 commit comments