Comments (1)
Thanks!
The "by similarity" setting is supposed to do fuzzy matching based on python's difflib
The idea is to find the longest contiguous matching subsequence [...] The same idea is then applied recursively to the pieces of the sequences to the left and to the right of the matching subsequence. This does not yield minimal edit sequences, but does tend to yield matches that “look right” to people.
difflib.SequenceMatcher(None, '123123aaaaaa', '9aaaaaa87987').ratio()
# 0.5
difflib.SequenceMatcher(None, 'c', '1aaaaaa87987').ratio()
# 0.5833333333333334
I think in the second example, it first finds aaaaaa as 6 matches and then finds the first 1 as a 7th match so then the ratio is (6 + 1) * 2 / (len("123123aaaaaa") + len("1aaaaaa87987")) = 0.588
.
Definitely not clearly documented what the setting does or how it works currently.
from anki_cousins.
Related Issues (17)
- Configuration fields HOT 2
- Unable to set a config HOT 3
- seems can't bury card,i don't know where had a problem HOT 4
- suggestion : bury cards that have been added in close proximity HOT 3
- suggestion : enable hiding reviews but not new cards
- suggestion:can postpones related card a certain number of days instead of bury HOT 2
- name of media should be kept HOT 2
- better verbose mode
- rule window is too wide HOT 1
- rule "cloze answers contained in" should not work for few words HOT 3
- a failsafe is needed HOT 1
- undo after a review will not unbury all the cards
- Add-on has no configuration !? HOT 7
- New feature HOT 4
- burying cousins only works when "bury until next day" options are checked HOT 2
- No 'config' available in Anki 2.1.35 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anki_cousins.