Skip to content

Commit

Permalink
formatting code
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyuyan2717 committed Mar 30, 2024
1 parent 82fdd42 commit c158ab3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, topk=5):
def _get_replacement_words(self, word):
"""Returns a list containing all possible words with N characters
replaced by a homoglyph."""
if word in self.wordCache: # use cache
if word in self.wordCache:
return self.wordCache[word]
results = self.hownet_dict.get_nearest_words(word, language="zh", K=self.topk)
synonyms = []
Expand Down

0 comments on commit c158ab3

Please sign in to comment.