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

Commit e1d70bb

Browse files
authored
Add missing paren (#2661)
1 parent 2bf0779 commit e1d70bb

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)