diff options
author | 2012-01-30 18:18:30 +0900 | |
---|---|---|
committer | 2012-02-08 13:00:31 +0900 | |
commit | a85f4929cd027246045ec3e806857b84e64fe762 (patch) | |
tree | 6951601a787239b48e007d151778042282e30108 /native/src/correction.h | |
parent | fd6a52c8d5fea684ef22b38c3a3838a65d259832 (diff) | |
download | latinime-a85f4929cd027246045ec3e806857b84e64fe762.tar.gz latinime-a85f4929cd027246045ec3e806857b84e64fe762.tar.xz latinime-a85f4929cd027246045ec3e806857b84e64fe762.zip |
Support multi words suggestion
result: I4d097612db2f2a93522
Change-Id: Iedbb24f431dac43e52b6dcce8cb610a75e0ca46e
Diffstat (limited to 'native/src/correction.h')
-rw-r--r-- | native/src/correction.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/native/src/correction.h b/native/src/correction.h index 9559bbf12..2114eff4b 100644 --- a/native/src/correction.h +++ b/native/src/correction.h @@ -121,9 +121,9 @@ class Correction { bool needsToPrune() const; - int getFreqForSplitTwoWords( - const int *freqArray, const int *wordLengthArray, const bool isSpaceProximity, - const unsigned short *word); + int getFreqForSplitMultipleWords( + const int *freqArray, const int *wordLengthArray, const int wordCount, + const bool isSpaceProximity, const unsigned short *word); int getFinalFreq(const int freq, unsigned short **word, int* wordLength); int getFinalFreqForSubQueue(const int freq, unsigned short **word, int* wordLength, const int inputLength); @@ -151,8 +151,8 @@ class Correction { static int calculateFinalFreq(const int inputIndex, const int depth, const int freq, int *editDistanceTable, const Correction* correction, const int inputLength); - static int calcFreqForSplitTwoWords(const int *freqArray, const int *wordLengthArray, - const Correction* correction, const bool isSpaceProximity, + static int calcFreqForSplitMultipleWords(const int *freqArray, const int *wordLengthArray, + const int wordCount, const Correction* correction, const bool isSpaceProximity, const unsigned short *word); static double calcNormalizedScore(const unsigned short* before, const int beforeLength, const unsigned short* after, const int afterLength, const int score); |