Bergvca / string_grouper

Super Fast String Matching in Python
MIT License
364 stars 76 forks source link

able to change default cosine similarity of .8? #78

Closed campbellalex321 closed 2 years ago

campbellalex321 commented 2 years ago

I noticed that the default cosine similarity is .8, but it seems like it's not bringing back matches that are just one character in some cases and I was wondering if there was a way I could bring the cosine similarity as a parameter? I looked at your examples and seemed like there was nothing that did that. Or would I just have to import the class and change the default value myself?

ParticularMiner commented 2 years ago

@campbellalex321

The relevant parameter is min_similarity. Follow this link.

campbellalex321 commented 2 years ago

oh thank you! Shoot can't believe I missed that!