aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/dictionary.cpp
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-03-28 18:21:04 +0900
committersatok <satok@google.com>2012-03-28 18:42:30 +0900
commit6ba8de2a608dfe4865b0b59a753f2d2abbedeeff (patch)
tree8d4e2f90dcbeca665c6e54d491cb41e9169042d1 /native/src/dictionary.cpp
parent67094f5bdece00994f70c6f1fa9a6ff7b8f3c3c1 (diff)
downloadlatinime-6ba8de2a608dfe4865b0b59a753f2d2abbedeeff.tar.gz
latinime-6ba8de2a608dfe4865b0b59a753f2d2abbedeeff.tar.xz
latinime-6ba8de2a608dfe4865b0b59a753f2d2abbedeeff.zip
Good bye the proximity logic in Java code
Bug: 4343280 Change-Id: I82f7d08703647a3492ce6e2d3b741146df58927e
Diffstat (limited to 'native/src/dictionary.cpp')
-rw-r--r--native/src/dictionary.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/native/src/dictionary.cpp b/native/src/dictionary.cpp
index 8e252f730..981a983ee 100644
--- a/native/src/dictionary.cpp
+++ b/native/src/dictionary.cpp
@@ -27,7 +27,7 @@ namespace latinime {
// TODO: Change the type of all keyCodes to uint32_t
Dictionary::Dictionary(void *dict, int dictSize, int mmapFd, int dictBufAdjust,
int typedLetterMultiplier, int fullWordMultiplier,
- int maxWordLength, int maxWords, int maxAlternatives)
+ int maxWordLength, int maxWords)
: mDict((unsigned char*) dict), mDictSize(dictSize),
mMmapFd(mmapFd), mDictBufAdjust(dictBufAdjust),
// Checks whether it has the latest dictionary or the old dictionary
@@ -44,8 +44,8 @@ Dictionary::Dictionary(void *dict, int dictSize, int mmapFd, int dictBufAdjust,
maxWords, SUB_QUEUE_MAX_WORDS, maxWordLength);
const unsigned int headerSize = BinaryFormat::getHeaderSize(mDict);
mUnigramDictionary = new UnigramDictionary(mDict + headerSize, typedLetterMultiplier,
- fullWordMultiplier, maxWordLength, maxWords, maxAlternatives, IS_LATEST_DICT_VERSION);
- mBigramDictionary = new BigramDictionary(mDict + headerSize, maxWordLength, maxAlternatives,
+ fullWordMultiplier, maxWordLength, maxWords, IS_LATEST_DICT_VERSION);
+ mBigramDictionary = new BigramDictionary(mDict + headerSize, maxWordLength,
IS_LATEST_DICT_VERSION, true /* hasBigram */, this);
}