Giter Club home page Giter Club logo

Comments (2)

Mmdixon avatar Mmdixon commented on May 22, 2024

Hey @acoroleu-tempus, thanks for trying out the library. I noticed some similar and some different behavior to what you described.

  1. I've used it for typically ~200 contacts (constructor takes <1s), maybe <1000 contacts. I tried it with 10k and it took 55s, so similar to you
  2. The EnContactMatcher is a fairly opinionated matcher. It has an AcceleratedFuzzyMatcher that uses the EnHybridDistance for both the contact's names and aliases that is processed with the WhitespaceTokenizer and EnPreProcessor that does a kind of a windowing on the name to add variations. So if you'd like to deviate from it you should have all the components to build a matcher to do what you want to do.
  3. constructor time I agree with, switching from the internal AcceleratedFuzzyMatcher to FuzzyMatcher (55s->25s similar to you). But find time was fairly drastic (10ms to 192ms), a ~2x start cost for a ~19x query reduction gain. the "0.1 seconds with accelerated" seems a bit high in your case? If we were talking about a smaller number of contacts, like 200 instead of 10k, the comparison is a lot closer (425ms build 2ms find vs 301ms build 4ms find, respectively)

Because of a noticeable difference in (3), and how the performance gap gets bigger with more contacts and how EnContactMatcher may expand the contact list from the original size with the windowing it does (thus a bigger contact list), I do not recommend (2).

from phoneticmatching.

acoroleu-tempus avatar acoroleu-tempus commented on May 22, 2024

Hi @Mmdixon, the current preprocessing of EnContactMatcher looks what we need in order to increase accuracy results.

Would it be possible to make FuzzyMatcher serializable? Given the constructor takes some time, when being passed a large number of contacts, we'd like to serialize and store in Redis so it can be re-used (deserialized).

Thanks for your support!

from phoneticmatching.

Related Issues (8)

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.