Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Louis Chartrand committed Mar 16, 2021
1 parent 9289bcf commit c241b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clctm.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _get_indices(self, doc_idx):
if isinstance(doc_idx, int):
return list(range(*self.doc_rng(doc_idx)))
else:
return list(chain(*(range(*self.doc_rng[d] for d in doc_idx))))
return list(chain(*(range(*self.doc_rng[d]) for d in doc_idx)))

def _get_mask(self, doc_idx):
r = np.full(len(self.input_ids), False)
Expand Down

0 comments on commit c241b97

Please sign in to comment.