aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/unigram_dictionary.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Prepare for proximity + two words suggestionsatok2011-12-161-26/+38
| | | | Change-Id: I3637f9bec1f4a3c5953498c4562e1f17a7bf593c
* Add words priority queue poolsatok2011-12-151-23/+29
| | | | Change-Id: I152df7b876a1756b69ded2ca4fb3ee26b38c971f
* Add a functionality to limit the max correction errorssatok2011-12-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Before ==== test finished, terminate logcat ===== (0) 121.97 (0.28%) (1) 42032.07 (95.46%) (2) 11.03 (0.03%) (3) 12.19 (0.03%) (4) 10.02 (0.02%) (5) 1417.41 (3.22%) (6) 258.43 (0.59%) (20) 50.20 (0.11%) Total 44033.07 (sum of others 43913.32) After ==== test finished, terminate logcat ===== (0) 110.81 (0.29%) (1) 36416.11 (94.47%) (2) 10.06 (0.03%) (3) 9.45 (0.02%) (4) 9.83 (0.03%) (5) 1535.52 (3.98%) (6) 290.25 (0.75%) (20) 40.57 (0.11%) Total 38546.83 (sum of others 38422.60) Change-Id: Iffd24ce0b2dc422c8c6085d5be5f6bfdaf59ca7d
* Prune traversing a bit agressively and add a flag not to do auto completionsatok2011-12-151-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | +1 1 -1 2 +2 0 -2 0 +3 0 -3 0 +4 6 -4 1 +5 4 -5 3 +6 3 -6 10 +7 7 -7 5 Before: Total 42936.28 (sum of others 42814.63) After: Total 40860.56 (sum of others 40733.92) Change-Id: I6a3d52f31ec181970083358280c3ebaca0a1f63e
* Unbundle members in unigram_dictionarysatok2011-12-141-75/+75
| | | | Change-Id: Id737d943d20e3de3db568162caf40d3e956c7fae
* Use priority queue for native string buffersatok2011-12-131-75/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +1 2 -6 2 Performance before ==== test finished, terminate logcat ===== (0) 100.34 (0.26%) (1) 37149.26 (95.30%) (2) 8.43 (0.02%) (3) 11.18 (0.03%) (4) 9.92 (0.03%) (5) 1330.60 (3.41%) (6) 250.46 (0.64%) (20) 12.41 (0.03%) Total 38982.50 (sum of others 38872.59) after ==== test finished, terminate logcat ===== (0) 97.65 (0.26%) (1) 35427.43 (95.32%) (2) 10.30 (0.03%) (3) 8.95 (0.02%) (4) 11.01 (0.03%) (5) 1224.67 (3.30%) (6) 243.76 (0.66%) (20) 40.91 (0.11%) Total 37167.04 (sum of others 37064.68) Change-Id: Id4d3b88a9cdef765affc52973aeac951ecc6a8ca
* Reorganize char_utils.h and basechars.hTadashi G. Takaoka2011-11-111-4/+4
| | | | | | | * make BASE_CHARS[] const * add several inline menthods for ASCII character handling Change-Id: I49664f219af88faf0aef43ac350cfc216570b185
* Cleanup unused functionTadashi G. Takaoka2011-10-271-6/+0
| | | | Change-Id: Ic0895e1973b3879b2a63f7e0b888e9a0480be6f3
* Demote words with a capitalized charsatok2011-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | Bug: 5371514 +1 4 -1 2 +2 0 -2 0 +3 0 -3 0 +4 1 -4 3 +5 0 -5 12 +6 3 -6 3 +7 12 -7 0 Change-Id: I6b46e43f9059f1e8a1cc02a626ea6eb8f1f9924f
* Merge "Classify touches into three types."Yusuke Nojima2011-09-301-3/+3
|\
| * Classify touches into three types.Yusuke Nojima2011-09-301-3/+3
| | | | | | | | Change-Id: I7c1d42835e0c15d596a1b66d421b0aa514ec0890
* | Add a flag to demote completed suggestionssatok2011-09-291-12/+18
|/ | | | | Bug: 5390063 Change-Id: I0ef4fbcc705539624269fd2f8c4e782679fc44b3
* Delete unused function and add TODO comment for a potential bug.Yusuke Nojima2011-09-141-14/+0
| | | | Change-Id: I7b16de1bd6b278c51d56eb1904e186c3db3b7f3d
* Combine the skipped and transposed correctionsatok2011-08-231-25/+10
| | | | | | bug: 4170136 Change-Id: I7b50b40478abf27f51ec5e001815ff4882f3e5e5
* Do the transposed correction and the excessive correction by one loopsatok2011-08-191-16/+9
| | | | Change-Id: Idc7a3451a65f7b980e5c499e9083f67646b3a199
* Combilne normal correction and skip correctionsatok2011-08-151-1/+2
| | | | Change-Id: Ide868d977c0f35900340c7be1b71d572c69a8806
* Calculate the skip correction by one loopsatok2011-08-111-8/+2
| | | | Change-Id: Ie70829407cd58be2ffe75c7d649d86f62ee4df24
* Add correction state.satok2011-08-101-25/+9
| | | | Change-Id: I0a1419922e1ce7a15b566d1b6da3794f8e84c754
* Refactor CorrectionState to Correctionsatok2011-08-101-29/+29
| | | | Change-Id: I5f1ce35413731f930b43b1c82014e65d9eaa240b
* Move scoring part to the correction statesatok2011-08-051-151/+70
| | | | Change-Id: I2dc4a0869636fce5526f48b3a6267b6bdf61dbfb
* Change the prune conditionsatok2011-08-041-1/+2
| | | | Change-Id: I92aef12e0e1d89cfe1b346ddc6ef4df158ffe0b3
* Move the input index and output index to correction statesatok2011-08-041-57/+52
| | | | Change-Id: Idebdb59143f3367929df6a0475cefe941eb16d01
* Move code related to ranking algorithm to correction_state.cppsatok2011-08-031-54/+43
| | | | Change-Id: I52b34de45969fef82e46d9c10079c2d45e0b94eb
* Move code related to ranking algorithm to the correction statesatok2011-08-021-180/+55
| | | | Change-Id: I2d9e2db81cf6597ca4e88d7bc6737ab3b52b34b2
* Remove old dictionary format codesatok2011-08-011-249/+0
| | | | Change-Id: Ic4b9e069c9bd5c088769519f44d0a9ea45acb833
* Add correction statesatok2011-08-011-71/+40
| | | | Change-Id: I0d281cede1590893bd1def005cf83c9431d12750
* Small native refactoring.Jean Chalard2011-07-261-79/+1
| | | | | | | | | | | | Move a purely dictionary-format-related function that is needed both by unigrams and bigrams to the binary format handling file. Also remove the empty UnigramDictionary::getBigrams placeholder function, on grounds that it should be in the BigramDictionary class. Bug: 5046459 Change-Id: I8a67a25f72122e2fa0b19ae1d936db25eb0b20ba
* Some refactoringJean Chalard2011-07-261-5/+6
| | | | | | | | | | Getting the frequency of a terminal is not very useful, however getting its position will be very useful for retrieving bigrams later. Moreover, from the position it's easy to find out the frequency. Bug: 5046459 Change-Id: Ica53472c2038c7e407dbd1399d336511c731087f
* Some native cleanupJean Chalard2011-07-221-16/+18
| | | | | | | | Take a function that does not need to be a member and make it static inline. Also replace the return value of -1 by a #define'd constant. Change-Id: I92e0deaa1df65998b76aba6329a4c8eb4d287485
* (Step2)Move functions related to proximity to proximity_info.cppsatok2011-07-141-104/+28
| | | | Change-Id: Iae0eb2a5cd758bda820fa42b4bc3eb3d2665bf96
* Merge "(Step 1) Move proximity related parameters from unigram_dictionary to ↵satok2011-07-131-23/+13
|\ | | | | | | proximity_info"
| * (Step 1) Move proximity related parameters from unigram_dictionary to ↵satok2011-07-141-23/+13
| | | | | | | | | | | | proximity_info Change-Id: Ic630b35f4abffeb84c38bcf5935795b7ff07556a
* | Fix build for profilingsatok2011-07-141-4/+4
|/ | | | Change-Id: I39cd0fa37fb738dcbbcf82839b6bb030e3af606b
* Merge "New dict format, step 7"Jean Chalard2011-07-121-68/+413
|\
| * New dict format, step 7Jean Chalard2011-07-131-68/+413
| | | | | | | | | | | | | | | | This actually implements the new dictionary format, but does not activate the implementation through #defines. Bug: 4392433 Change-Id: I9b26b9bcb4b823a36e0984799b69730acfc6f7f3
* | Compile code used in logging conditionally so that gcc does not complainDoug Kwan2011-07-081-0/+8
|/ | | | | | about unused-but-set variables. Change-Id: I141f438694a1854d54d08cb5a74c23222dd9d85e
* Move a function out of a #endif to reduce a future commitJean Chalard2011-06-301-83/+41
| | | | Change-Id: Ic8f3160a96b6d79ba19ff9c8eda1692e94a38e98
* Rename parameters for future changeJean Chalard2011-06-301-6/+16
| | | | Change-Id: Id15a17340fb26f91c72687f30bef24b2d8b94940
* Internal cleanupJean Chalard2011-06-301-2/+2
| | | | | | Moving functions around, renaming parameters Change-Id: I3ab480f483d7d9700b9328cb07b16b51005098e5
* Cleanup.Jean Chalard2011-06-301-4/+4
| | | | | | Function renaming, moving around for future patch readability Change-Id: Id33b961cf2e899b5a3c9189951d2199aba801666
* Internal cleanup.Jean Chalard2011-06-301-18/+12
| | | | | | Function renaming, useless function supressing, fix comments Change-Id: I148acbaf367cd556a85b89016676b46cc971af81
* New dict format, step 6Jean Chalard2011-06-211-0/+130
| | | | | | | Copy the modified functions to be able to see the diff Bug: 4392433 Change-Id: Ic9b83b4b4b7b89cc922eed1825507d7d516aff24
* New dict format, step 5Jean Chalard2011-06-211-164/+172
| | | | | | | | | Move functions that will be modified and enclose those that will be replaced into #ifdefs. This change does not modify any code, only move some code around. Bug: 4392433 Change-Id: Ibefbda1eb8bdc8a0c72de47ad9c67a08d0aca960
* Merge "New dict format, step 4"Jean Chalard2011-06-171-29/+42
|\
| * New dict format, step 4Jean Chalard2011-06-171-29/+42
| | | | | | | | | | | | | | | | | | Consolidate terminal cases, streamline the word adding process and create the entrances for adding alternate spellings with an empty implementation. Bug: 4392433 Change-Id: I781c93ec49945d71c7c20624c86596aa49add4c8
* | New dict format, step 3 - followupJean Chalard2011-06-171-2/+1
|/ | | | | | | Make the passing of an argument clearer Bug: 4392433 Change-Id: Id82662ff4dc25282f70a08bee77378fee2b4b590
* Fix a bug where bigram search would never returnJean Chalard2011-06-171-4/+5
| | | | | Bug: 4690487 Change-Id: Ie8f3f651508cc48bbb043a0b308f7e0d1524371c
* New dict format, step 3Jean Chalard2011-06-161-10/+17
| | | | | | | Some refactoring and add of a parameter that will be necessary. Bug: 4392433 Change-Id: I17f001a7efd4f69f4c35f94ee1ca8e97391b81d5
* New dict format, step 2Jean Chalard2011-06-161-3/+45
| | | | | | | Move some methods around and make static some methods Bug: 4392433 Change-Id: I2bbe98aec118a416d21d1e293638e1d324505b9b
* New dict format, step 1Jean Chalard2011-06-161-13/+13
| | | | | | | | This renames some variables and removes dependancies to values that will disappear Bug: 4392433 Change-Id: I79a44462d6bf25248cc2de0d63d7918fc6925d68