Skip to content

Commit 8ba2a39

Browse files
matt-gardnerTalSchuster
authored andcommitted
Add missing paren (allenai#2661)
1 parent 6fb29d4 commit 8ba2a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tutorials/tagger/config_allennlp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def text_to_instance(self, tokens: List[Token], tags: List[str] = None) -> Insta
4343
return Instance(fields)
4444

4545
def _read(self, file_path: str) -> Iterator[Instance]:
46-
with open(cached_file(file_path) as f:
46+
with open(cached_file(file_path)) as f:
4747
for line in f:
4848
pairs = line.strip().split()
4949
sentence, tags = zip(*(pair.split("###") for pair in pairs))

0 commit comments

Comments
 (0)