Living-with-machines / DeezyMatch

A Flexible Deep Learning Approach to Fuzzy String Matching
https://living-with-machines.github.io/DeezyMatch/
Other
139 stars 34 forks source link

Add a catch for when -t is out of range 0-1 (for cosine and score) #59

Closed fedenanni closed 4 years ago

fedenanni commented 4 years ago

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