Comments (1)
Hey -- sorry for the late comment. By default we're using edit distance by the well-known Levenshtein algorithm to determine similarity. As you've noted there are times when it seems odd. You can specify use_levenshtein=False
to get cosine similarity based on matching trigrams/bigrams. Here's an example of that:
>>> f = FuzzySet(use_levenshtein=False)
>>> f.add(u'Conor Hedley')
>>> print(f.get(u'directory manager'))
[(0.06537204504606135, 'Conor Hedley')]
>>> f.add(u'man')
>>> print(f.get(u'directory manager'))
[(0.140028008402801, 'man')]
from fuzzyset.
Related Issues (20)
- Allow .get to return more than 1 result HOT 5
- Installation error - can't find `fuzzyset/cfuzzyset.c` HOT 1
- TypeError: 'int' object is not subscriptable HOT 4
- windows cant install HOT 3
- Transition to a wheel-based distribution HOT 1
- can give a sim score parameter in cFuzzySet.get() HOT 1
- Levenshtein exception when mixing unicode and strings
- cFuzzySet usage: all match scores are 0? HOT 8
- How to get index of match in original list? HOT 4
- Memory purge
- Version on PyPi does not match any commit
- Problem while trying to install it
- cfuzzyset / fuzzyset have divergent behaviour
- Problem with install to Python3.9 HOT 5
- Make FuzzySet Python2.6 compatible
- Add typings
- Does not Compile Under PyPy
- Add python3 support HOT 4
- more documentation. package still maintained? HOT 7
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 fuzzyset.