Skip to content

Commit

Permalink
add todo for speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
xuming06 committed Oct 15, 2018
1 parent e318574 commit 9b19469
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pycorrector/corrector.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,14 @@ def _confusion_custom_set(self, word):
confusion_word_set = {self.custom_confusion[word]}
return confusion_word_set

# TODO: need more faster
def _generate_items(self, word, fraction=1):
"""
生成纠错候选集
:param word:
:param fraction:
:return:
"""
candidates_1_order = []
candidates_2_order = []
candidates_3_order = []
Expand Down

0 comments on commit 9b19469

Please sign in to comment.