diff options
author | 2012-01-16 18:48:19 +0900 | |
---|---|---|
committer | 2012-01-16 18:58:10 +0900 | |
commit | 82ddd168893892cfe4366e1e2fa9e9bfeb5478a5 (patch) | |
tree | fb646f0e6582b4836088ca21308d4621e61a1585 /native/src/correction.cpp | |
parent | d64b8c97fea0ab5dd6d16feef329127dc7ecc833 (diff) | |
download | latinime-82ddd168893892cfe4366e1e2fa9e9bfeb5478a5.tar.gz latinime-82ddd168893892cfe4366e1e2fa9e9bfeb5478a5.tar.xz latinime-82ddd168893892cfe4366e1e2fa9e9bfeb5478a5.zip |
Stop avoiding adding what the user typed to candidates
There does not seem to be any reason other than a historical
one to avoid doing this, but it takes processing power and
makes things more complicated.
This has a very limited impact on regression tests:
5 -> 3 [He, the]
5 -> 3 [An, an]
5 -> 3 [Where, where]
5 -> 3 [This, this]
7 -> 1 [wAtch, watch]
6 -> 4 [oveNs, oceans]
5 -> 1 [Ahere, Where]
7 -> 1 [Hast, Hast]
7 -> 5 [bjp, bill]
5 -> 1 [What, What]
5 -> 3 [Sound, So und]
7 -> 3 [causalities, casualties]
7 -> 3 [discontentment, discontent]
7 -> 3 [irregardless, regardless]
5 -> 1 : 2
5 -> 3 : 5
6 -> 4 : 1
7 -> 1 : 2
7 -> 3 : 3
7 -> 5 : 1
+1 4
-1 0
+2 0
-2 0
+3 8
-3 0
+4 1
-4 0
+5 1
-5 7
+6 0
-6 1
+7 0
-7 6
Change-Id: I6407cf922f27bbd3992df11d63690e71fc61111b
Diffstat (limited to 'native/src/correction.cpp')
-rw-r--r-- | native/src/correction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/correction.cpp b/native/src/correction.cpp index 43ab3f59c..75831b69d 100644 --- a/native/src/correction.cpp +++ b/native/src/correction.cpp @@ -168,8 +168,8 @@ int Correction::getFinalFreq(const int freq, unsigned short **word, int *wordLen const int outputIndex = mTerminalOutputIndex; const int inputIndex = mTerminalInputIndex; *wordLength = outputIndex + 1; - if (mProximityInfo->sameAsTyped(mWord, outputIndex + 1) || outputIndex < MIN_SUGGEST_DEPTH) { - return -1; + if (outputIndex < MIN_SUGGEST_DEPTH) { + return NOT_A_FREQUENCY; } *word = mWord; |