Closed ashczq closed 1 year ago
Apologies for the late response. Could you give me the full code and perhaps a reproducible example? Without it, it is difficult to see what exactly is happening.
jellyfish_matcher = EditDistance(scorer=levenshtein_distance)
company_names = ['shift capital',' blackstone real estate private equity','shift capital llc','brokertec','axience']
model = PolyFuzz(jellyfish_matcher)
model.match(company_names)
Sure i've included an example and also a screenshot of the initial error that results in the argmax error.
It took a while, my apologies, but it seems that the issue stems from the implementation of the EditDistance in PolyFuzz. I just added a fix to the main branch that you can use. I might release an official quickfix in the coming weeks but that will also depends on whether new features are going to be implemented.
I'm currently using the levenshtein distance through Edit Distance and getting this error. Have checked my list values for null values as well as empty strings. The same list values work with fuzz_matcher & TF-IDF. Any idea why this is happening?