Commit
·
c03750c
1
Parent(s):
4094f95
Add additional case to remove entities without an identifier (db_id = '-') (#4)
Browse files- Add additional case to remove entities without an identifier (db_id = '-') (dd857abbdb4446d7fb1b888bfc28c8b2ad96b397)
Co-authored-by: David Kartchner <[email protected]>
- 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:
|