Skip to content

Commit

Permalink
support configuring filter_deduplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed Sep 29, 2024
1 parent 9f5780b commit 7104888
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions angle_emb/angle_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
'This prompt will be applied for all text columns.'
'If you want to specify different prompts for different text columns,'
'please handle it in the preprocessing step.')
parser.add_argument('--filter_duplicate', type=int, default=1, choices=[0, 1],
help='Specify filter_duplicate, choices [0, 1], defaut 1')
parser.add_argument('--save_dir', type=str, default=None,
help='Specify save dir, default None')
parser.add_argument('--seed', type=int, default=-1,
Expand Down Expand Up @@ -271,6 +273,7 @@ def main():
'angle_tau': args.angle_tau,
},
fp16=args.fp16,
filter_duplicate=args.filter_duplicate,
argument_kwargs=argument_kwargs,
apply_ese=args.apply_ese,
trainer_kwargs=trainer_kwargs,
Expand Down

0 comments on commit 7104888

Please sign in to comment.