Skip to content

Commit

Permalink
Fixed reference id matcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
kedz committed Aug 28, 2019
1 parent 4660dc2 commit 5c9239f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nnsum/data/summarization_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _collect_references(self, references_dir):

ref_paths = defaultdict(list)
for path in references_dir.glob("*"):
ref_id = path.stem.rsplit(".")[0]
ref_id = path.stem.rsplit(".", 1)[0]
ref_paths[ref_id].append(path)

all_ref_paths = []
Expand Down

0 comments on commit 5c9239f

Please sign in to comment.