aboutsummaryrefslogtreecommitdiffstats
path: root/native (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Merge "Remove -fno-inline from profiling build."Keisuke Kuroyanagi2014-10-031-1/+1
|\
| * Remove -fno-inline from profiling build.Keisuke Kuroyanagi2014-10-031-1/+1
| | | | | | | | | | Bug: 17797064 Change-Id: I0ab60e2da8c9f509de472afbc3ad32e41e69e73c
* | [ML13] Fix the locale passing in ProximityInfoJean Chalard2014-10-039-45/+51
|/ | | | | | | | | | | | | | | | | | | 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-0113-21/+129
| | | | | Bug: 14425059 Change-Id: I0b6cb80e1fb8f738e9c7d9e80fbc0c479546b879
* Add jni method to update entries for a word efficiently.Keisuke Kuroyanagi2014-10-011-0/+18
| | | | | Bug: 14425059 Change-Id: Ic628939ea68cdee17573409883a8403c73b78905
* Move HistoricalInfo to property and use it in *Property.Keisuke Kuroyanagi2014-10-0121-89/+64
| | | | | Bug: 14425059 Change-Id: Icccccabad98fb543c6a6be2844cfc0086d80b739
* Rename BigramProperty to NgramProperty.Keisuke Kuroyanagi2014-09-2926-101/+96
| | | | | | | | 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-259-48/+58
| | | | Change-Id: I15056b36b7493f4bac1dbcbb46a0b44343ede153
* Merge "Use CodePointArrayView in WordProperty."Keisuke Kuroyanagi2014-09-244-12/+7
|\
| * Use CodePointArrayView in WordProperty.Keisuke Kuroyanagi2014-09-244-12/+7
| | | | | | | | Change-Id: I45a9755c413003831788d190beb499fee8ce63aa
* | Merge "Refactoring method to get code points and code point count."Keisuke Kuroyanagi2014-09-2410-61/+47
|\|
| * Refactoring method to get code points and code point count.Keisuke Kuroyanagi2014-09-2410-61/+47
| | | | | | | | | | Bug: 14425059 Change-Id: I4731bd6076d34556e46e6714180fed324fb6aba3
* | Fix: native unit test.Keisuke Kuroyanagi2014-09-241-4/+4
|/ | | | | Bug: 14425059 Change-Id: I7c5103eac35e01a5732f1f4594d730df06dfca96
* 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-1918-56/+133
|\
| * Native side reads character tableAkifumi Yoshimoto2014-09-1918-56/+133
| | | | | | | | | | Bug:17097992 Change-Id: Ibcfc67833a6754fe6a2d82a3e3023b33886b9ea2
* | [ML8] Add a language weightJean Chalard2014-09-1915-47/+66
| | | | | | | | | | | | | | ...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-182-14/+13
|/ | | | | 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
* | Merge "Use ReadOnlyByteArrayView in ShortcutListPolicy"Keisuke Kuroyanagi2014-09-175-26/+26
|\|
| * Use ReadOnlyByteArrayView in ShortcutListPolicyKeisuke Kuroyanagi2014-09-175-26/+26
| | | | | | | | Change-Id: I03a6f49c9005306bcc5fce8b7e4d37b8d30b9faa
* | Merge "Use ReadOnlyByteArrayView in BigramListPolicy."Keisuke Kuroyanagi2014-09-173-28/+26
|\|
| * Use ReadOnlyByteArrayView in BigramListPolicy.Keisuke Kuroyanagi2014-09-173-28/+26
| | | | | | | | Change-Id: I0f8e8044c8803a7a542f97be5b8f08fdb5ae3926
* | Merge "Use ReadOnlyByteArrayView in PatriciaTriePolicy."Keisuke Kuroyanagi2014-09-173-44/+59
|\|
| * Use ReadOnlyByteArrayView in PatriciaTriePolicy.Keisuke Kuroyanagi2014-09-173-44/+59
| | | | | | | | Change-Id: I4ef01c0af73f27c256cc1a719343be836913dc71
* | Merge "Add firstOrDefault and lastOrDefault to IntArrayView."Keisuke Kuroyanagi2014-09-174-3/+37
|\ \ | |/ |/|
| * Add firstOrDefault and lastOrDefault to IntArrayView.Keisuke Kuroyanagi2014-09-174-3/+37
| | | | | | | | Change-Id: I854c02eff3fa0b53c72a5f1cabce001f4854ada0
* | Use CodePointArrayView in DictionaryUtils.Keisuke Kuroyanagi2014-09-173-7/+8
| | | | | | | | Change-Id: I9ae308e60124ea5acb4ee09847c4fdd58ff168e2
* | Use CodePointArrayView in Dictionary.Keisuke Kuroyanagi2014-09-173-50/+51
| | | | | | | | Change-Id: I63fa0a8348f6de6ec7a424a8033e936b4af72beb
* | Use IntArrayView in DynamicPtUpdatingHelper.Keisuke Kuroyanagi2014-09-177-95/+85
|/ | | | Change-Id: Ifa185eba7dd9abee1b35e49fe559be1042ca63d7
* Support n-gram for look-up.Keisuke Kuroyanagi2014-09-176-18/+28
| | | | | Bug: 14425059 Change-Id: I19523c29fb802cd65158c7540d1608e7f55c4ca7
* Support removing n-gram entry in structure policy.Keisuke Kuroyanagi2014-09-162-12/+2
| | | | | Bug: 14425059 Change-Id: Ifd2ac97a15dcbb936e2f068866a9d1ee68759ba2
* Support adding n-gram entry in structure policy.Keisuke Kuroyanagi2014-09-163-16/+7
| | | | | Bug: 14425059 Change-Id: Ia207d3c4735b1d6d43f18d18a70d28af613cb458
* Update input checking logic for adding/removing n-gram.Keisuke Kuroyanagi2014-09-163-20/+39
| | | | | Bug: 14425059 Change-Id: Ifb4e3c3f06aaf9a16f632ff208ba76cf741cea83
* Have mPrevWordCount in DicNodeProperties.Keisuke Kuroyanagi2014-09-161-6/+11
| | | | | Bug: 14425059 Change-Id: I5ce22bace4ec08d0da4e5c167288a742c4426c33
* Support decaying dict in getWordProbability().Keisuke Kuroyanagi2014-09-144-13/+18
| | | | | Bug: 14425059 Change-Id: I24db3f9131c2999fc388035dc365c7faaef3bdb1
* Use passed previous word count in PrevWordsInfo.Keisuke Kuroyanagi2014-09-147-48/+67
| | | | | | Bug: 14425059 Change-Id: I04007bdacf0176a05be7a27ef1c20c5b851d8bed
* Use WordIdArrayView for prevWordIds.Keisuke Kuroyanagi2014-09-1120-138/+133
| | | | | Bug: 14425059 Change-Id: Ia84fb997d89564e60111b46ca83bbfa3b187f316
* Implement IntArrayView.copyToBuffer().Keisuke Kuroyanagi2014-09-112-1/+30
| | | | | Bug: 14425059 Change-Id: Ic1b7de72701eae0c0b1bb28d12514099446a66a9
* Remove unigram probability from dicNode.Keisuke Kuroyanagi2014-09-106-32/+11
| | | | | Bug: 14425059 Change-Id: Ie848e8568bb4dbb1d8358e823a881d9157a1aad3
* Quit using dicNode.getUnigramProbability().Keisuke Kuroyanagi2014-09-104-8/+16
| | | | | Bug: 14425059 Change-Id: I192070cc11e5d46c8413ebc19982d6a8c93577fc
* Use CodePointArrayView to create children DicNodes.Keisuke Kuroyanagi2014-09-106-13/+20
| | | | Change-Id: Ie940b6595f3f3f804fbb8dd03c710ea062b75af3