Giter Site home page Giter Site logo

New feature about anki_cousins HOT 4 CLOSED

alexriina avatar alexriina commented on July 19, 2024
New feature

from anki_cousins.

Comments (4)

AlexRiina avatar AlexRiina commented on July 19, 2024 1

I've just released an update to the plugin that includes the code changes in #6. If the "detect duplicates" functionality still isn't working well for you in the updated version, let me know what kind of rules you have configured and I'll see if I can find a better way to do that calculation. I've updated just the similarity rule, but some of the others could use some love.

Please feel free to share with anyone you think would fine it useful

from anki_cousins.

AlexRiina avatar AlexRiina commented on July 19, 2024

Thanks, @arisaeedi! I'm happy to hear you find it useful.

My initial impression was that the current implementation would be too slow to support looking at large pre-made decks but that the functionality would still be great to have. My own decks have some repeated concepts and auto-generated cards from previous experiments and I'd love to clean them up.

So anyway, I took a stab at it and threw it into #6
duplicates which you can either install locally if following along with the readme or install from
plugin.zip (probably good to make a backup of your deck just in case).

With that, you'd be able to find duplicate notes using your rules, mark them with a tag like duplicate-deck1-deck2 and then suspend cards from either deck that match those tags. I'd bet in some cases, there are duplicate cards but not all cards on two identified notes are duplicates, so someone would have to pick the ones to suspend carefully, but hopefully this at least makes a clear checklist.

from anki_cousins.

arisaeedi avatar arisaeedi commented on July 19, 2024

That was so fast! Regardless, this was exactly what I was looking for. I'm having a little bit of trouble getting it to work on my deck. I'm not sure if it's the card type or cloze deletions, or the fact that it has a lot of media files that might make running it sluggish as you mentioned. If you incorporate it into a final build (sorry dunno the lingo here super well), I'd definitely spread the word about this awesome work.

from anki_cousins.

AlexRiina avatar AlexRiina commented on July 19, 2024

Thanks, it was definitely pretty slow on my main anki profile and that was sometimes causing my OS to ask if I wanted to kill the process. I've reimplemented the similarity check and replaced the very inefficient way that I was building the list of duplicated notes.

For me, the version I uploaded before took about a minute to calculate the duplicates on my full deck and now takes about 7 seconds. If you have time I'd be curious to see if this version is faster for you as well. I just dropped another plugin file into #6 (comment)

from anki_cousins.

Related Issues (17)

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.