Skip to content

Commit

Permalink
Update Fuzzy_Match.py
Browse files Browse the repository at this point in the history
Edit typo "isparse"
  • Loading branch information
bryceForrest authored Nov 21, 2024
1 parent 21fa0bd commit 848cc73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fuzzy_Match/Fuzzy_Match.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def search(self, query, top_n=5):
if self.weight is not None:
self.query_tf_idf = self.weight.transform(self.query_tf_idf)

if scipy.sparse.isparse(self.query_tf_idf):
if scipy.sparse.issparse(self.query_tf_idf):
norm_q = scipy.sparse.linalg.norm(self.query_tf_idf, axis=1)
norm_q[norm_q.nonzero()] += np.finfo(float).eps
norm_c = scipy.sparse.linalg.norm(self.corpus_tf_idf, axis=1)
Expand Down

0 comments on commit 848cc73

Please sign in to comment.