Add a catch for when -t is out of range 0-1 (for cosine and score)
fedenanni opened this issue · comments
To reproduce the current problem:
DeezyMatch --deezy_mode candidate_ranker -comb ./combined/test -rm cosine -t 5 -n 5 -sz 4 -o test_candidates_deezymatch -mp ./models/finetuned_test001/finetuned_test001.model -v ./models/finetuned_test001/finetuned_test001.vocab -tn 20
cosine needs -t between 0 and 1.
Additionally, we need a catch if f there is no found candidate