Add additional case to remove entities without an identifier (db_id = '-')
#4
by
davidkartchner
- opened
- nlm_gene.py +1 -1
nlm_gene.py
CHANGED
@@ -182,7 +182,7 @@ class NLMGeneDataset(datasets.GeneratorBasedBuilder):
|
|
182 |
db_ids = db_ids.lstrip('-222,')
|
183 |
|
184 |
# No listed entity for a mention
|
185 |
-
if db_ids in ['-1','-000','-111']:
|
186 |
normalized = []
|
187 |
|
188 |
else:
|
|
|
182 |
db_ids = db_ids.lstrip('-222,')
|
183 |
|
184 |
# No listed entity for a mention
|
185 |
+
if db_ids in ['-1','-000','-111','-']:
|
186 |
normalized = []
|
187 |
|
188 |
else:
|