diff options
author | 2014-10-28 17:11:14 +0900 | |
---|---|---|
committer | 2014-10-28 17:11:14 +0900 | |
commit | 8a809f3433c3b96a3a9002a5bdc166f8c689eeb0 (patch) | |
tree | 246c42f5996ce3b01764704cb21c2bf9f004642a /native/jni/src/suggest/core/suggest.cpp | |
parent | dd5737b0fa3bf68f90534457ed8d23437caf5420 (diff) | |
download | latinime-8a809f3433c3b96a3a9002a5bdc166f8c689eeb0.tar.gz latinime-8a809f3433c3b96a3a9002a5bdc166f8c689eeb0.tar.xz latinime-8a809f3433c3b96a3a9002a5bdc166f8c689eeb0.zip |
Improve space substitution error correction.
Bug: 17432052
[Category diff]
+1 262
-1 93
+2 2
-2 18
+3 18
-3 2
+4 111
-4 148
+5 295
-5 217
+6 51
-6 276
+7 139
-7 124
[Weighted category diff]
+1 276
-1 100
+2 4
-2 20
+3 20
-3 4
+4 118
-4 160
+5 309
-5 225
+6 52
-6 298
+7 163
-7 135
show diff for ./en_user_log_phones_2011_08.csv
+1 173
-1 28
+2 2
-2 17
+3 17
-3 2
+4 63
-4 82
+5 120
-5 51
+6 24
-6 220
+7 88
-7 87
Change-Id: I9d673acb0ff632828ae2e0ead56e76e3a20411c6
Diffstat (limited to 'native/jni/src/suggest/core/suggest.cpp')
-rw-r--r-- | native/jni/src/suggest/core/suggest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/native/jni/src/suggest/core/suggest.cpp b/native/jni/src/suggest/core/suggest.cpp index c71526293..68a36454e 100644 --- a/native/jni/src/suggest/core/suggest.cpp +++ b/native/jni/src/suggest/core/suggest.cpp @@ -160,8 +160,7 @@ void Suggest::expandCurrentDicNodes(DicTraverseSession *traverseSession) const { // TODO: Remove. Do not prune node here. const bool allowsErrorCorrections = TRAVERSAL->allowsErrorCorrections(&dicNode); // Process for handling space substitution (e.g., hevis => he is) - if (allowsErrorCorrections - && TRAVERSAL->isSpaceSubstitutionTerminal(traverseSession, &dicNode)) { + if (TRAVERSAL->isSpaceSubstitutionTerminal(traverseSession, &dicNode)) { createNextWordDicNode(traverseSession, &dicNode, true /* spaceSubstitution */); } |