Skip to content

Commit

Permalink
add new args
Browse files Browse the repository at this point in the history
  • Loading branch information
Parry-Parry committed Nov 12, 2024
1 parent 71057f9 commit 0efcd95
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions rankers/train/data_arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,22 @@ class RankerDataArguments:
default=None,
metadata={"help": "IR Dataset for text lookup"}
)
lazy_load_text : Optional[bool] = field(
default=True,
metadata={"help": "Lazy load text from the corpus"}
)
precomputed : Optional[bool] = field(
default=False,
metadata={"help": "DataFrame with existing text fields"}
)
text_field : Optional[str] = field(
default='text',
metadata={"help": "Field name for text"}
)
query_field : Optional[str] = field(
default='text',
metadata={"help": "Field name for query"}
)
no_positive : Optional[bool] = field(
default=False,
metadata={"help": "Dont use positive samples locatd in 'doc_id_a' column instead use solely 'doc_id_b'"}
Expand Down

0 comments on commit 0efcd95

Please sign in to comment.