Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 8e5ee65

Browse files
authored
fix dumb domain filtering (#1505)
1 parent 8a20820 commit 8e5ee65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allennlp/data/dataset_readers/ontonotes_ner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _ontonotes_subset(ontonotes_reader: Ontonotes,
8989
identifier in the file path are yielded.
9090
"""
9191
for conll_file in ontonotes_reader.dataset_path_iterator(file_path):
92-
if domain_identifier is None or f"/{domain_identifier}/" in conll_file and not "/pt/" in conll_file:
92+
if (domain_identifier is None or f"/{domain_identifier}/" in conll_file) and "/pt/" not in conll_file:
9393
yield from ontonotes_reader.sentence_iterator(conll_file)
9494

9595
@overrides

0 commit comments

Comments
 (0)