Skip to content

Commit

Permalink
chores: remove fuzzywuzzy (explodinggradients#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahules786 authored Sep 27, 2024
1 parent d0d33b0 commit d91007c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ all = [
"transformers",
"nltk",
"rouge_score",
"fuzzywuzzy",
"rapidfuzz",
"pandas",
"datacompy",
Expand Down
1 change: 0 additions & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ sentence-transformers
transformers
fastembed
graphene
fuzzywuzzy
rouge_score
nltk
rapidfuzz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class Jaccard(Similarity):
def __post_init__(self):
if self.type == "fuzzy":
try:
from fuzzywuzzy import fuzz
from rapidfuzz import fuzz
except ImportError:
raise ImportError(
"fuzzywuzzy is not installed. Run pip install fuzzywuzzy"
"rapidfuzz is not installed. Run pip install rapidfuzz"
)
self.fuzz = fuzz
self.threshold = self.threshold or 80
Expand Down

0 comments on commit d91007c

Please sign in to comment.