Skip to content

Commit

Permalink
should fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Parry-Parry committed Nov 6, 2024
1 parent ec6731b commit e594e9a
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions rankers/train/training_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ class RankerTrainingArguments(TrainingArguments):
default=2,
metadata={"help": "Number of documents per query"}
)
ir_dataset : Optional[str] = field(
default=None,
metadata={"help": "IR Dataset for text lookup"}
)
wandb_project : Optional[str] = field(
default=None,
metadata={"help": "Wandb project name"}
Expand All @@ -42,13 +38,6 @@ def __post_init__(self):
if len(self.eval_metrics) > 0:
self.eval_metrics = [parse_ir_measure(metric) for metric in self.eval_metrics]
self.loss_fn = get_loss(self.loss_fn)
if self.ir_dataset is not None:
assert is_ir_datasets_available(), "Please install ir_datasets to use the ir_dataset argument"
try:
import ir_datasets
self.ir_dataset = ir_datasets.load(self.ir_dataset)
except Exception as e:
raise ValueError(f"Unable to load ir_dataset: {e}")

def to_dict(self):
"""
Expand Down

0 comments on commit e594e9a

Please sign in to comment.