Code Monkey home page Code Monkey logo

Comments (6)

josegonzalez avatar josegonzalez commented on August 22, 2024

@ojomio pr please! :)

from fuzzywuzzy.

josegonzalez avatar josegonzalez commented on August 22, 2024

Closed by #60. Thanks for the pull request!

from fuzzywuzzy.

ojomio avatar ojomio commented on August 22, 2024

Today it suddenly hit me, that in current implementation every two strings that have a word in common will produce 100% match, because two of three comparisons here https://github.com/seatgeek/fuzzywuzzy/blob/master/fuzzywuzzy/fuzz.py#L186
are comparisons of intersection with 'intersection + stuff', which, if partial, is always 100. Is that normal or should we modify the behavior, I personally would leave only combined_1to2 to combined_2to1 check

from fuzzywuzzy.

ojomio avatar ojomio commented on August 22, 2024

OK, than we have combined_1to2 and combined_2to1, which have intersection at their beginning
Is this possible at all, that partial_ratio will find offset other than zero where these two strings will be more similar?

I mean, now I don't know if there is sense having partial option at all...

from fuzzywuzzy.

josegonzalez avatar josegonzalez commented on August 22, 2024

@acslater00 thoughts?

from fuzzywuzzy.

ojomio avatar ojomio commented on August 22, 2024

@josegonzalez You should have yelled at me in rage :) No matter which offset be found, but at lest at offset zero ratio() will be calculated with the substring of the longer string of length of the shorter string, and not the whole longer string. Thus, it seems there is sense in having such option

from fuzzywuzzy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.