Living-with-machines / DeezyMatch

A Flexible Deep Learning Approach to Fuzzy String Matching

Home Page:https://living-with-machines.github.io/DeezyMatch/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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