aboutsummaryrefslogtreecommitdiffstats
path: root/native (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactoring: Introduce PtNode and PtNodeReader.Keisuke Kuroyanagi2013-10-2515-436/+528
| | | | | | | | To handle multiple dictionary formats in helpers. Bug: 11073222 Change-Id: Iaef7be08534f9010e837ffcf8c8292b174b64d2b
* Introduce Ver4DictBuffers to handle multiple buffers.Keisuke Kuroyanagi2013-10-246-6/+185
| | | | | Bug: 11073222 Change-Id: Icacca8133c0030b19ca826fbf9525f41a1ac6cc8
* Introduce DictContent for ver4 dict.Keisuke Kuroyanagi2013-10-243-0/+154
| | | | | Bug: 11073222 Change-Id: I88ab3948a98388931d81c97825c9d2c76e15a44b
* Introduce ExclusiveOwnershipPointer.Keisuke Kuroyanagi2013-10-2413-150/+280
| | | | | Bug: 11073222 Change-Id: I841527f0247f2ade07796406729b3a4a8958aa57
* Merge "Tracking minor errors to categorize exact match."Keisuke Kuroyanagi2013-10-2114-71/+190
|\
| * Tracking minor errors to categorize exact match.Keisuke Kuroyanagi2013-10-2114-71/+190
| | | | | | | | | | | | Bug: 8844931 Change-Id: I012529f5fc0d094ef64a41c075fe548b6b439265
* | Merge "Add utility methods related to buffers for ver4 dict."Keisuke Kuroyanagi2013-10-219-15/+113
|\ \
| * | Add utility methods related to buffers for ver4 dict.Keisuke Kuroyanagi2013-10-219-15/+113
| | | | | | | | | | | | | | | Bug: 11073222 Change-Id: Ieca15ffa09fd36c6602f6d2afab5779800c5a422
* | | Fix: Suggested words from user history are invalid.Keisuke Kuroyanagi2013-10-181-2/+9
|/ / | | | | | | | | | | | | | | - Suggestions form user history can contain invalid words. - isValidWord always returns false. Bug: 11139426 Change-Id: I6075b275603332ddb00f4a9284afcaa82d824270
* | Add ver4 dictionary structure policy file.Keisuke Kuroyanagi2013-10-163-0/+185
| | | | | | | | | | Bug: 11073222 Change-Id: Ia9e1a4842d42a581812a8c3dd4a85e7ee86dd529
* | Moving files for dictionary structure policies.Keisuke Kuroyanagi2013-10-1626-44/+46
|/ | | | | Bug: 11073222 Change-Id: Ic40f6258e2b0c2790d526aff31312c112760839d
* Make "node"s clear by renaming to PtNode or DicNode.Keisuke Kuroyanagi2013-10-1619-231/+233
| | | | | Bug: 10233675 Change-Id: I248b927c724253f593e3806e82b4e1fed2c025fb
* Initial step to support version 4 format in native code.Keisuke Kuroyanagi2013-10-095-0/+12
| | | | | Bug: 11073222 Change-Id: I633229381b28cef23edef2b37e5b0bf6e15af468
* Fix offdevice test build.Keisuke Kuroyanagi2013-10-081-2/+2
| | | | Change-Id: I42143bdc4f6f5aa4f55530de84819ab722a22f72
* Merge "Fix a bug: wrong parent position is written when moving."Keisuke Kuroyanagi2013-10-081-1/+2
|\
| * Fix a bug: wrong parent position is written when moving.Keisuke Kuroyanagi2013-10-081-1/+2
| | | | | | | | Change-Id: I93d33ba9105eb85327108cca5706d8db3399de6a
* | Merge "Don't auto-correct to non-whitelist shortcuts"Jean Chalard2013-10-071-1/+1
|\ \ | |/ |/|
| * Don't auto-correct to non-whitelist shortcutsJean Chalard2013-10-071-1/+1
| | | | | | | | | | Bug: 11076722 Change-Id: I0de10ab24d33ec31f45664fe92d80d5a7bec9c20
* | Fix bug and Add large test for decaying dictionary.Keisuke Kuroyanagi2013-10-077-4/+24
| | | | | | | | | | | | | | | | - GC gets failure when the dictionary become empty. - Useless unigrams are sometimes not removed. Bug: 10197478 Change-Id: I8d1479c01efba61a81f03bc077da6bcb4797a940
* | Parameter optimization.Keisuke Kuroyanagi2013-10-071-3/+3
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [Category diff] +1 194 -1 21 +2 15 -2 1 +3 1 -3 15 +4 152 -4 90 +5 108 -5 197 +6 94 -6 136 +7 28 -7 132 [Weighted category diff] +1 230 -1 23 +2 15 -2 1 +3 1 -3 15 +4 180 -4 106 +5 122 -5 224 +6 107 -6 158 +7 29 -7 157 show diff for ./en_user_log_phones_2011_08.csv +1 171 -1 9 +2 7 -2 1 +3 1 -3 7 +4 123 -4 76 +5 84 -5 157 +6 66 -6 119 +7 20 -7 103 Before ---- count ---- Count(1):75.64%, 177913 Count(2):1.06%, 2510 Count(3):0.56%, 1319 Count(4):6.63%, 15612 Count(5):9.87%, 23223 Count(6):2.79%, 6580 Count(7):3.41%, 8038 ---- weight ---- Weight(1):96.88%, 2009907 Weight(2):0.24%, 5157 Weight(3):0.09%, 2025 Weight(4):0.77%, 16095 Weight(5):1.11%, 23077 Weight(6):0.39%, 8172 Weight(7):0.48%, 10146 ---- score ---- Conservative score = 66.406 Normal score = 81.512 Agressive score = 89.064 Insane score = 92.841 After ---- count ---- Count(1):75.71%, 178087 Count(2):1.07%, 2524 Count(3):0.55%, 1305 Count(4):6.66%, 15677 Count(5):9.83%, 23133 Count(6):2.78%, 6539 Count(7):3.37%, 7930 ---- weight ---- Weight(1):96.89%, 2010118 Weight(2):0.24%, 5171 Weight(3):0.09%, 2011 Weight(4):0.78%, 16184 Weight(5):1.1%, 22972 Weight(6):0.39%, 8109 Weight(7):0.48%, 10014 ---- score ---- Conservative score = 66.431 Normal score = 81.531 Agressive score = 89.08 Insane score = 92.855 No diffs for 10+ freq user log. Change-Id: Ica4a7604507a2c91aaa7daf5bacf4fce4039f547
* Merge "Check the elapsed time for decaying."Keisuke Kuroyanagi2013-10-0411-57/+111
|\
| * Check the elapsed time for decaying.Keisuke Kuroyanagi2013-10-0411-57/+111
| | | | | | | | | | Bug: 6669677 Change-Id: I0401a4c0908c702ce65abfa5e017dd16cb1296f9
* | Merge "Optimize the parameters for the typing algorithm"Xiaojun Bi2013-10-041-24/+24
|\ \
| * | Optimize the parameters for the typing algorithmXiaojun Bi2013-10-031-24/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The new set of parameters are optimized for both keystroke savings and regression test scores. This change is corresponding to the patch 6 of Change-Id: Ib8439a85de26cbbba58837344717f0acbfcf0ab0 in the regression test repository. Here is the link to the doc analyzing the “nnow → know” case: https://docs.google.com/a/google.com/document/d/1XIHfAHLlP1f3F8R-u7yxPGWcP58tokygzN_lQKXFFgM/edit Here is the link to the spreadsheet showing the diff of the words with frequencies >= 10 in en_user_log_phones_2011_08.csv. https://docs.google.com/a/google.com/spreadsheet/ccc?key=0Am_RQlV4zC6SdFFVTlhJT0RLUENCWWZOZ3JQTUpMQ2c&usp=drive_web#gid=0 Updated TRT Results for this change: [Category diff] +1 783 -1 717 +2 20 -2 34 +3 34 -3 20 +4 575 -4 777 +5 765 -5 755 +6 785 -6 666 +7 479 -7 472 [Weighted category diff] +1 999 -1 965 +2 21 -2 35 +3 35 -3 21 +4 804 -4 980 +5 970 -5 971 +6 954 -6 831 +7 645 -7 625 Bug: 10613502 Change-Id: I5cd447673a196ad5af641a2118602bec879bdefb
* | | Merge "Fix UserHistoryDictionaryTests."Keisuke Kuroyanagi2013-10-031-1/+0
|\ \ \
| * | | Fix UserHistoryDictionaryTests.Keisuke Kuroyanagi2013-10-031-1/+0
| | |/ | |/| | | | | | | | | | | | | | | | Bug: 6669677 Bug: 10667710 Change-Id: I6cdc6a6c9cacc7f276fda3a26ec31e3eb928471c
* / | Fix: Native crash when an empty attribute is written.Keisuke Kuroyanagi2013-10-031-0/+3
|/ / | | | | | | | | Bug: 10964805 Change-Id: Ia3cd891d20aee2226092f0f646d8f280901786fc
* | Fix build.Keisuke Kuroyanagi2013-10-021-1/+0
| | | | | | | | Change-Id: Ib33b27214e67378646e44f5b45bda298f960524f
* | Use probability table for decaying dictionaries.Keisuke Kuroyanagi2013-10-022-18/+42
| | | | | | | | | | Bug: 6669677 Change-Id: Ib5994a2e343dfcdaf23755e523f52846709b1c6c
* | Stochastic decay.Keisuke Kuroyanagi2013-10-025-91/+69
| | | | | | | | | | Bug: 6669677 Change-Id: Ib2d9228b951c77dab7a8675ce9db60677e87e771
* | Change name of DecayingUtils.Keisuke Kuroyanagi2013-10-027-46/+49
|/ | | | | Bug: 6669677 Change-Id: I97839b2184b95ae1659c55a9b31d22e2d601cba1
* Merge "Implement the heuristic for auto-commit."Jean Chalard2013-10-015-6/+86
|\
| * Implement the heuristic for auto-commit.Jean Chalard2013-10-015-6/+86
| | | | | | | | | | Bug: 9059617 Change-Id: I066abf018df5aaeabf415425dd822ebe233e6008
* | Merge "Fix typos"Jean Chalard2013-10-016-19/+19
|\ \
| * | Fix typosJean Chalard2013-10-016-19/+19
| |/ | | | | | | | | | | I think I may pass out from the sheer ugliness Change-Id: I1e709f03ef47ec713552d41fd9e37e01b810ae88
* / Separate "GC" and "GC with decay".Keisuke Kuroyanagi2013-10-0112-32/+70
|/ | | | | Bug: 6669677 Change-Id: I9d6aba76cef2616f0549e612db9701e1d6a19467
* Create the wiring for auto-commit confidence computation.Jean Chalard2013-10-017-12/+36
| | | | | Bug: 9059617 Change-Id: I7e4e05ffa8c68cfebbe362a977fd176555cad12a
* Merge "Surface the distance after first word for autocommit."Jean Chalard2013-09-306-10/+51
|\
| * Surface the distance after first word for autocommit.Jean Chalard2013-09-306-10/+51
| | | | | | | | | | Bug: 9059617 Change-Id: Ie9b4cc8148ae8e0ff437b3337ab6c1bde95500f5
* | Implement simple dictionary decay.Keisuke Kuroyanagi2013-09-3011-37/+392
|/ | | | | | | | | | Groundwork and implement simple decay. Increment probability when typed and decrement probability at GC. Bug: 6669677 Change-Id: Ib12caead0cbeef4ce7808fe8ac0b00ee331523fe
* Prepare dictionary decay.Keisuke Kuroyanagi2013-09-3014-42/+51
| | | | | Bug: 6669677 Change-Id: I8fbae190dd44a6bdbee7e9b6d3a16208322727f7
* Merge "Set header attributes for ExpandableBinaryDictionary."Keisuke Kuroyanagi2013-09-292-17/+21
|\
| * Set header attributes for ExpandableBinaryDictionary.Keisuke Kuroyanagi2013-09-282-17/+21
| | | | | | | | | | | | Bug: 6669677 Change-Id: I2462777eaa07600f1c774226adfc4f351882f523
* | Merge "Add boundary checking for PtNode Array reading."Keisuke Kuroyanagi2013-09-273-1/+21
|\|
| * Add boundary checking for PtNode Array reading.Keisuke Kuroyanagi2013-09-273-1/+21
| | | | | | | | | | Bug: 6669677 Change-Id: Iea5e19d98d2fc26f137046dd5f8e339239672351
* | Merge "Add unigram/bigram counting."Keisuke Kuroyanagi2013-09-2718-101/+273
|\ \ | |/ |/|
| * Add unigram/bigram counting.Keisuke Kuroyanagi2013-09-2718-101/+273
| | | | | | | | | | Bug: 6669677 Change-Id: I05ea2201d822dddf062b08c8467daa336760e16c
* | Merge "Use base lower character to get point to key length."Keisuke Kuroyanagi2013-09-261-4/+5
|\ \ | |/ |/|
| * Use base lower character to get point to key length.Keisuke Kuroyanagi2013-09-261-4/+5
| | | | | | | | | | Bug: 9490364 Change-Id: I3755f00ab22f926f087fc917b95a2db7d722fa00
* | Create empty dictionary file in native code.Keisuke Kuroyanagi2013-09-263-0/+51
|/ | | | | Bug: 6669677 Change-Id: I46d23deee1fd091678f4593561cb8687eb815212