Skip to content

Commit

Permalink
how annoying
Browse files Browse the repository at this point in the history
  • Loading branch information
Parry-Parry committed Nov 6, 2024
1 parent ac1b702 commit d902ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rankers/train/training_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def to_dict(self):
d[k] = v.value
if isinstance(v, list) and len(v) > 0 and isinstance(v[0], Enum):
d[k] = [x.value for x in v]
if isinstance(v, list) and is_ir_measures_available():
if isinstance(v, list) and is_ir_measures_available() and len(v) > 0:
import ir_measures
if type(v[0]) == ir_measures.Measure:
d[k] = [x.NAME for x in v]
Expand Down

0 comments on commit d902ed1

Please sign in to comment.