From 14cb5e3da9b4b498f0afca3e016c54dd01d446ef Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 9 Oct 2013 16:20:32 +0800 Subject: add comments --- partialword.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/partialword.py b/partialword.py index f67ac97..61c8e7d 100755 --- a/partialword.py +++ b/partialword.py @@ -216,6 +216,9 @@ def doCombineWord(high_cur, low_cur, words): words_str = sep + prefix + sep + postfix + sep #print(words_str) + #if the to-be-merged sequence has several matched pairs, + # then several sequences will be added to lower-gram. + #TODO: maybe consider equally divide the matched_freq. for item in matched_items: (matched_words_str, matched_freq) = item assert words_str in matched_words_str -- cgit