aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * Use EntryCounters during GC.Keisuke Kuroyanagi2014-10-215-65/+54
| | | | | | | | | | Bug: 14425059 Change-Id: I61eb798686dc753fb6c0fe99a0719c1732198f30
* | Merge "Renaming "blacklist" flag to "possibly offensive""Adrian Velicu2014-10-2113-52/+99
|\ \ | |/ |/|
| * Renaming "blacklist" flag to "possibly offensive"Adrian Velicu2014-10-2113-52/+99
| | | | | | | | | | | | | | | | | | No behaviour changes. Unified the overloaded FusionDictionary::add method to always take an isPossiblyOffensive argument. Bug: 11031090 Change-Id: I5741a023ca1ce842d2cf10d4f6c926b0efabaa78
* | Introduce EntryCounters to count entries in a dictionary.Keisuke Kuroyanagi2014-10-2116-89/+230
|/ | | | | | Bug: 14425059 Change-Id: Ic13ba827d96fa4a147485ba92fdb37e23e04e8e8
* Change entry count limit.Keisuke Kuroyanagi2014-10-202-3/+7
| | | | | | Unigram 10K, Bigram 30K, Trigram 30K. Change-Id: Ibd19c6a2b618499df1c70000bad7b47498187f0a
* Merge "Update useless n-gram entry detection logic during GC."Keisuke Kuroyanagi2014-10-152-21/+32
|\
| * Update useless n-gram entry detection logic during GC.Keisuke Kuroyanagi2014-10-152-21/+32
| | | | | | | | | | Bug: 14425059 Change-Id: Ib939deae5b60167751dee07965bb1ef1a43c4625
* | Merge "Use better conditional probability for ngram entries."Keisuke Kuroyanagi2014-10-152-11/+26
|\|
| * Use better conditional probability for ngram entries.Keisuke Kuroyanagi2014-10-152-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | Old: P(W | W_prev) = f(W, W_prev) + C New: P(W | W_prev) = f(W, W_prev) / f(W_prev) Bug: 14425059 Bug: 16547409 Change-Id: I4d13be6de2c6bad6bad7fb22320a23ba4ecd361c
* | Merge "Move entry updating method to language model dict content."Keisuke Kuroyanagi2014-10-157-72/+115
|\|
| * Move entry updating method to language model dict content.Keisuke Kuroyanagi2014-10-157-72/+115
| | | | | | | | | | Bug: 14425059 Change-Id: I710055490d141539458cbf968adf5a7ccffd9552
* | Quit using weightChildNode for ADDITIONAL_PROXIMITY and SUBSTITUTION.Keisuke Kuroyanagi2014-10-144-9/+14
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Category diff] +1 0 -1 1 +2 0 -2 0 +3 0 -3 0 +4 1 -4 1 +5 8 -5 7 +6 0 -6 1 +7 1 -7 0 [Weighted category diff] +1 0 -1 1 +2 0 -2 0 +3 0 -3 0 +4 1 -4 1 +5 8 -5 7 +6 0 -6 1 +7 1 -7 0 Bug: 13756409 Change-Id: I6ac3567545676bbefbee3e87dda54bc083c15fb6
* Fix: BoS bigram from user history dictionary is too strong.Keisuke Kuroyanagi2014-10-132-4/+10
| | | | | | | They can be always stronger than BoS predictions from the contextual dictionary. Bug: 17961731 Change-Id: I70297d82436c10c790bdfad6f3dfefdb4bb2f852
* [ML23] Introduce a different accuracy/performance tradeoffJean Chalard2014-10-106-6/+43
| | | | | Bug: 11230254 Change-Id: Ic09518c818ae7b68942b1c63160dd462e5922cb5
* Merge "Make members of classes that are used with std::vector const"Keisuke Kuroyanagi2014-10-103-21/+19
|\
| * Make members of classes that are used with std::vector constKeisuke Kuroyanagi2014-10-093-21/+19
| | | | | | | | Change-Id: Id93fb87f5630230fc3f9cd339e12f3b0e2006ea9
* | Merge "Rename prev_words_info.h to ngram_context.h"Keisuke Kuroyanagi2014-10-098-7/+7
|\|
| * Rename prev_words_info.h to ngram_context.hKeisuke Kuroyanagi2014-10-098-7/+7
| | | | | | | | | | Bug: 14425059 Change-Id: I0e906631ecad2361a8198b3f9e3394bb22c5bf83
* | Merge "Rename PrevWordsInfo to NgramContext."Keisuke Kuroyanagi2014-10-0913-95/+95
|\|
| * Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-10-0913-95/+95
| | | | | | | | | | Bug: 14425059 Change-Id: I30703fc80e9450d4e2dbfec965e7f9f4468f6a11
* | Fixing misspelled wordAdrian Velicu2014-10-094-5/+5
|/ | | | Change-Id: I51d77e271143d40256b39e5c60a3065d9fdf63fb
* Rename updateCounter to updateEntriesForWordWithNgramContext.Keisuke Kuroyanagi2014-10-099-22/+26
| | | | | Bug: 14425059 Change-Id: Id9b0dd7e32c711ed4292981517c3febd5fe9e897
* Merge "Improve bigram probability computation for decaying dicts."Keisuke Kuroyanagi2014-10-066-98/+83
|\
| * Improve bigram probability computation for decaying dicts.Keisuke Kuroyanagi2014-10-066-98/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without personalization: Total words: 1079345, Success Num: 819749, Success Percentage: 75.949% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1754, Bad Failure Percentage: 0.163% Failures, with auto-correction (F-C): 28463, F-C Percentage: 2.637% Max Keystrokes: 6074285, Min Keystrokes: 4649326, Keystroke Saving Percentage:23.459% With current probability computing logic: Total words: 1079382, Success Num: 838329, Success Percentage: 77.667% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1332, Bad Failure Percentage: 0.123% Failures, with auto-correction (F-C): 28558, F-C Percentage: 2.646% Max Keystrokes: 6074503, Min Keystrokes: 4474102, Keystroke Saving Percentage:26.346% Remove isof files. With new probability computing logic: Total words: 1079356, Success Num: 844954, Success Percentage: 78.283% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1306, Bad Failure Percentage: 0.121% Failures, with auto-correction (F-C): 27214, F-C Percentage: 2.521% Max Keystrokes: 6074477, Min Keystrokes: 4243021, Keystroke Saving Percentage:30.150% Remove isof files. Bug: 16547409 Change-Id: I3d2a49c7aaa2c0f6835c52ef72d22466ee225789
* | Merge "Make sure to suppress BoS prediction until input twice."Keisuke Kuroyanagi2014-10-061-1/+4
|\ \
| * | Make sure to suppress BoS prediction until input twice.Keisuke Kuroyanagi2014-10-061-1/+4
| | | | | | | | | | | | Change-Id: I98d91f264d5d1d3f5bcda1fd9ec885779ba2f746
* | | Merge "Fix: BoS prediction is shown after inputting just once."Keisuke Kuroyanagi2014-10-061-1/+4
|\| | | |/ |/|
| * Fix: BoS prediction is shown after inputting just once.Keisuke Kuroyanagi2014-10-061-1/+4
| | | | | | | | Change-Id: Ibba209f47cb5b1a4b08281689d607711b8dcfad4
* | Show prediction results in debug build.Keisuke Kuroyanagi2014-10-062-4/+1
|/ | | | | Bug: 16547409 Change-Id: If85418583998cd639c794bf5d5cfbbb972c34f72
* Fix: ProbabilityDictContent can be wrongly large.Keisuke Kuroyanagi2014-10-061-3/+1
| | | | | | It can be twice as large as it should be (80KB larger). Change-Id: If94f748f8c48a442b3c95ac989099aaed2aa2f86
* [ML13] Fix the locale passing in ProximityInfoJean Chalard2014-10-038-42/+48
| | | | | | | | | | | | | | | | | | | The locale is used to determine additional proximity characters. This is dependent on the dictionary language, but was passed as a function of the layout, which is wrong and would have given bad suggestions in multi-lingual mode. Ideally, additional proximity characters should be inserted in the dictionary header, but for now it's a rather simple change to get it from the dictionary's locale instead of the proximity info locale. Also, that allows us to remove completely the locale parameter from proximity info, which is a much needed change. This change has zero effect on unit tests and on regression tests. Bug: 11230254 Change-Id: If95157155db7dccd1f00b8ba55ccb3600283f9e4
* Implement updateCounter() by using existing entry adding methods.Keisuke Kuroyanagi2014-10-0112-15/+117
| | | | | Bug: 14425059 Change-Id: I0b6cb80e1fb8f738e9c7d9e80fbc0c479546b879
* Move HistoricalInfo to property and use it in *Property.Keisuke Kuroyanagi2014-10-0118-82/+56
| | | | | Bug: 14425059 Change-Id: Icccccabad98fb543c6a6be2844cfc0086d80b739
* Rename BigramProperty to NgramProperty.Keisuke Kuroyanagi2014-09-2925-93/+87
| | | | | | | | Remaining work is changing bigram to ngram for supporting ngram entry counting, dumping, and migration. Bug: 14425059 Change-Id: Ifba288a1166996d62a5e57698f63537ea0a2a8ee
* Quit reading unigram probability in Ver4PatriciaTrieNodeReader.Keisuke Kuroyanagi2014-09-256-38/+20
| | | | | Bug: 14425059 Change-Id: I4fc7b0e236151a2c64e7131772264024c6597633
* Use std::move for dictionary properties.Keisuke Kuroyanagi2014-09-257-30/+32
| | | | Change-Id: I15056b36b7493f4bac1dbcbb46a0b44343ede153
* Use CodePointArrayView in WordProperty.Keisuke Kuroyanagi2014-09-244-12/+7
| | | | Change-Id: I45a9755c413003831788d190beb499fee8ce63aa
* Refactoring method to get code points and code point count.Keisuke Kuroyanagi2014-09-2410-61/+47
| | | | | Bug: 14425059 Change-Id: I4731bd6076d34556e46e6714180fed324fb6aba3
* Move word flags to language model dict content.Keisuke Kuroyanagi2014-09-249-42/+68
| | | | | Bug: 14425059 Change-Id: I64712e5c83d0bc241e6f0f16117ab47b5d75bd4b
* Prepare supporting n-gram for user history dictionary.Keisuke Kuroyanagi2014-09-221-0/+3
| | | | | Bug:17097992 Change-Id: Ic8bfde3d4cc0e720bf7681e08e16fb2ad94d5670
* Fix native crash.Keisuke Kuroyanagi2014-09-191-1/+1
| | | | Change-Id: Ia8871db0248ddbc821605079e2a3e93859f4c9b7
* Merge "Native side reads character table"Akifumi Yoshimoto2014-09-1917-55/+119
|\
| * Native side reads character tableAkifumi Yoshimoto2014-09-1917-55/+119
| | | | | | | | | | Bug:17097992 Change-Id: Ibcfc67833a6754fe6a2d82a3e3023b33886b9ea2
* | [ML8] Add a language weightJean Chalard2014-09-1914-42/+59
| | | | | | | | | | | | | | ...and rename an improperly named normalization value Bug: 11230254 Change-Id: I0f5633148a9f66dbfd7d28540b8a8985131c4549
* | Make MAX_PREV_WORD_COUNT_FOR_N_GRAM 2.Keisuke Kuroyanagi2014-09-181-1/+1
| | | | | | | | | | Bug: 14425059 Change-Id: Iefacd7e4a6c256658a58856240310eeb91ae32db
* | Pass prevWordCount to native code for getSuggestion.Keisuke Kuroyanagi2014-09-181-7/+3
|/ | | | | Bug: 14425059 Change-Id: Id2b49a448982c997e5c0a22445b115e675156c3e
* Merge "Use ReadOnlyByteArrayView in Ver2ParticiaTrieNodeReader."Keisuke Kuroyanagi2014-09-173-13/+11
|\
| * Use ReadOnlyByteArrayView in Ver2ParticiaTrieNodeReader.Keisuke Kuroyanagi2014-09-173-13/+11
| | | | | | | | Change-Id: Ie3325bb9666c7ff6d519a1b72ed2fe9fc4f140a9
* | Merge "Use ReadOnlyByteArrayView in Ver2PtNodeArrayReader."Keisuke Kuroyanagi2014-09-173-12/+11
|\|
| * Use ReadOnlyByteArrayView in Ver2PtNodeArrayReader.Keisuke Kuroyanagi2014-09-173-12/+11
| | | | | | | | Change-Id: Ia1065465abdf7c64fadb3ff1efd2a4d2df343264