Skip to content

Commit

Permalink
v0.11.0 - Updated import path examples
Browse files Browse the repository at this point in the history
  • Loading branch information
atomflunder committed Jun 28, 2022
1 parent b10839b commit 2881526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,7 @@ If you are unhappy with the scoring algorithms provided, you can of course const
```python
# Example:

from stringmatch import Match
from stringmatch.scorer import BaseScorer
from stringmatch import BaseScorer, Match

class MyOwnScorer(BaseScorer):
def score(self, string1: str, string2: str) -> float:
Expand Down
3 changes: 1 addition & 2 deletions examples/custom/scorers.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# This here shows you how to use different scoring algorithms,
# and even how to implement your own.

from stringmatch import JaroWinklerScorer, LevenshteinScorer, Match
from stringmatch.scorer import BaseScorer
from stringmatch import BaseScorer, JaroWinklerScorer, LevenshteinScorer, Match


def main():
Expand Down

0 comments on commit 2881526

Please sign in to comment.