aboutsummaryrefslogtreecommitdiffstats
path: root/native (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Promote the correction of words with a missing space charactersatok2011-04-182-2/+8
| | | | Change-Id: I37ba618b54f7115163a3e9c6c555485e7024dc92
* Promote a word with a proximity charactersatok2011-04-142-5/+5
| | | | | | Bug: 4293295 Change-Id: Ib0ec8aff087c71c4fbe983f3f5bc78e9c7868fd8
* Promote a word with only one proximity character.satok2011-04-132-1/+13
| | | | | | Bug: 4271049 Change-Id: I755986f582f43417fda6b117207530c519233baf
* Change the formula of the missing character.satok2011-04-132-4/+8
| | | | | | | | | | | | - Bug: 4271049 - Due to the result of the recent user study, a word with a missing character needs to be promoted a bit. so I changed the formula from: - freq * 70 * (n - 2) / (n - 1) to: - freq * 90 * (10n - 12) / (10n - 2) Change-Id: Ibff72cbdb0f2d7b91460a06a0fd39a9f5749aa46
* Add -Werror flag to catch more warnings and errorsKen Wakasa2011-03-195-27/+73
| | | | Change-Id: I9c39ba24578931944aae8182918ed48a2e82eb39
* Merge "Tweak the demotion rate for a word with missing letter" into ↵satok2011-03-071-1/+1
|\ | | | | | | honeycomb-mr1
| * Tweak the demotion rate for a word with missing lettersatok2011-03-071-1/+1
| | | | | | | | | | | | Bug: 4027223 Change-Id: Ie9a5552d2f41d60f433573fde52efc097f5143bf
* | Fix a bug that a word with only one missing word is not promotedsatok2011-03-071-1/+1
|/ | | | | | Bug: 4027223 Change-Id: Icf7c5b917c18b565dca95b98b96c1c8e2963f540
* A bug fix for the mistyped space algorithmsatok2011-03-044-9/+7
| | | | | | | | Bug: 3311719 -- also fixed compiler warnings Change-Id: I6941c0d02f10d67af88bc943748dde8d8783fabb
* Merge "Demote skipped characters matched words with respect to length." into ↵Jean Chalard2011-03-043-7/+15
|\ | | | | | | honeycomb-mr1
| * Demote skipped characters matched words with respect to length.Jean Chalard2011-03-053-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | Words that matched user input with skipped characters used to be demoted in BinaryDictionary by a constant factor and not at all in those dictionaries implemented in java code. To represent the fact that the impact of a skipped character gets larger as the word is shorter, this change will implement a demotion that gets larger as the typed word is shorter. The demotion rate is (n - 2) / (n - 1) where n is the length of the typed word for n >= 2. It implements it for both BinaryDictionary and java dictionaries. Bug: 3340731 Change-Id: I3a18be80a9708981d56a950dc25fe08f018b5b89
* | Add the suggestion algorithm of words with space proximitysatok2011-03-045-29/+99
| | | | | | | | | | | | Bug: 3311719 Change-Id: Ide12a4a6280103c092fa0f563dd5b9e3f7f5c89b
* | Fix a bug with umlaut processing.Jean Chalard2011-03-043-27/+40
|/ | | | | Issue: 3275926 Change-Id: Ibcb00aaea3ff05ad59ad4e8e54dd3caab5ab9bca
* Use translation of fallback umlauts digraphs for German.Jean Chalard2011-03-035-39/+167
| | | | | | | | | For German : handle "ae", "oe" and "ue" to be alternate forms for umlaut-bearing versions of "a", "o" and "u". Issue: 3275926 Change-Id: I056c707cdacc464ceab63be56c016c7f8439196c
* Add proximity info to nativesatok2011-02-2313-45/+331
| | | | | | Bug: 3311719 Change-Id: Ie596304070e321ad23fb67a13bf05e2b6af1b54b
* Rename variables with obscure names.Jean Chalard2011-02-222-34/+37
| | | | | | | | | The `snr' variable has a very obscure name. Rename it to `matchWeight'. Also, the `toLowerCase' function is error-prone, since it actually returns a lower case version of the BASE char, that is without diacritics. Hence, rename it to `toBaseLowerCase' and update variables with similar names. Change-Id: Ibdbe73018a33ee864db59a51d664c3b104d5fb3f
* Force autocorrection of matching words with different accents.Jean Chalard2011-02-223-14/+98
| | | | | | | | | | | When entering a word without accents the user expects the system to add accents automatically if there is no other matching word. This patch ensures the accented version is promoted accordingly and autocorrection really takes place. Issue: 3400015 Change-Id: I8cd3db5bf131ec6844b26abecc1ecbd1d6269df4
* Remove next letters frequency handlingTadashi G. Takaoka2011-02-175-21/+16
| | | | | Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2
* Promote full matches with differing accents.Jean Chalard2011-01-273-21/+39
| | | | | | | | | | | Stop considering accented characters as different from their base character for proximity scoring. Also give a huge boost (basically overriding frequency) to a word fully matched with only differing accents. Bug: 2550587 Change-Id: I2da7a71229fb3868d9e4a53703ccf8caeb6fcf10
* Handle the last char correctly in excessive char correction algortihm.satok2011-01-271-3/+6
| | | | | | bug: 3278422 Change-Id: I651d3cb0130ab9834ed9d7a97f41360c6eaa9de1
* Fix auto-correction threshold and promote full matched wordssatok2011-01-273-7/+14
| | | | | | | | | | Bug: 3374359 Bug: 3278422 "zbe" will be auto corrected to "be" by fixing s-line "teh" will be auto corrected to "the" by promotion of full matched words Change-Id: I314c632820e4e0b1501edeca60ada205d291451f
* Fixes in close() in BinaryDictionary.Ken Wakasa2011-01-171-1/+1
| | | | | | | Avoid using 'synchronized' in finalizer as well. bug: 3340837 Change-Id: I9b28f54e4490ecb844ba33a379f71b625e4246a2
* Clean up: Update variable names to comply with spec of ApplicationInfo.Ken Wakasa2011-01-092-11/+11
| | | | | | | | | ApplicationInfo.sourceDir may or may not be apk file name. It can be a directory as well. The spec just says it's "Full path to the location of this package". Also, added error handling in loadDictionary(). Change-Id: I5e64d0aba4b1ec7634f4b3ac5537e7a774433ece
* Load main dic in nativeKen Wakasa2011-01-077-68/+172
| | | | | | | Follow up to Id57dce51 bug: 3219819 Change-Id: I00e11ef21d0252ffa88c12dffb9c55b0f2e19a66
* Supress overflow at mulitplying demotion ratesatok2011-01-051-7/+14
| | | | Change-Id: I2003c5f88a5062b11e2f21522095bb94b1eb4efd
* Add profiler for native dictionary codesatok2011-01-052-4/+77
| | | | Change-Id: I2569756c9ef4fa677ae52f2ccfcb90d2115d129f
* Consolidate main dictionary files.Ken Wakasa2011-01-051-5/+12
| | | | | | | | | This change is a preparation for upcoming optimizations on dictionary file loading. * We can consolidate dictionary files because we are no longer relying on Asset Manager. * Stopping compressing dictionary files as planning to use mmap() on the region in the apk file. * Probably we won't rely on Asset Manager. Instead we'll probably use offset and size obtained from AssetFileDescriptor. Change-Id: Id57dce512fd3d2397a58628f8264bd824194da76
* Manual merge from gingerbread-plus-aospJean-Baptiste Queru2010-12-291-0/+2
|\ | | | | | | Change-Id: If048354f9b80bcaa1e97df5c31c3df80231eb612
| * Don't use stale NDK libraries for IABruce Beare2010-12-271-0/+2
| | | | | | | | | | | | | | | | IA builds will break (due to the bionic _dso_handle bug) if stale libraries are used. For now, just guard the defns against IA builds. Change-Id: Ic9df6e0de78a0e221b95370ba6f01ce07714edde Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
* | Suggest words with excessive chars out of proximity charssatok2010-12-133-46/+61
| | | | | | | | | | | | Bug: 3273807 Change-Id: Ib8f48e562bcf4c2aac0ad5cb46809fd5f539a322
* | Suggest words with transposed charssatok2010-12-103-46/+110
| | | | | | | | | | | | Bug: 3193883 Change-Id: I884b669258bfc522bc04e14f22a7646164a4cac5
* | Limit the suggestions with an excessive character by filtering proximity ↵satok2010-12-102-4/+30
| | | | | | | | | | | | | | characters Change-Id: Iad26dad545f1a431aa0fa53f99198b27defd03a3 ug: 3269482
* | Fix a bug that We can't suggest words with missing space if one of the words ↵satok2010-12-093-54/+94
| | | | | | | | | | | | | | starts with a capitalized character. Bug: 3268825 Change-Id: I0634a243ad1e45dd096b30824b463c366a2e7f0f
* | Suggest words with missing spacesatok2010-12-095-84/+164
| | | | | | | | | | | | Bug: 3193883 Change-Id: I8d25f3e1d4db10be733d85edfa4f55a094feef80
* | Suggest excessive characterssatok2010-12-083-31/+58
| | | | | | | | | | | | bug: 3193883 Change-Id: Iea7a0fce7ce62d8779a7c7e4613d50db30d82b07
* | Make no-recursive getWordRecsatok2010-12-072-10/+68
| | | | | | | | Change-Id: Id90f3ca86ef490834cefa92f0d6958b1289fc633
* | Fix a crash when MAX_WORD_LENGTH is too short.satok2010-12-063-4/+15
| | | | | | | | Change-Id: Idcb5aa2685321b8d0ac7d846caecbd1c79e4dd77
* | Breakdown getWordRecsatok2010-12-063-64/+109
| | | | | | | | Change-Id: I4fef02c227fb858334dbe2eabf2762d5b6e1d919
* | Trim the flow of getWordRecsatok2010-12-063-38/+45
| | | | | | | | Change-Id: Ic0cfa64ee1e55682ca73681c585db6a5cb510900
* | Merge "Breakdown getWordRec"satok2010-12-032-63/+72
|\ \
| * | Breakdown getWordRecsatok2010-12-032-63/+72
| | | | | | | | | | | | Change-Id: I8556efb1dd053eff9a9681971cbe1014abf0333f
* | | Just code cleanup.Ken Wakasa2010-12-031-46/+30
|/ / | | | | | | Change-Id: I796b47aa168b3b2cc29de65fc7dc5dab5a7f4b17
* | Breakdown getWordRec and add commentssatok2010-12-034-35/+70
| | | | | | | | Change-Id: I88bad8a4a8177e3540b995b664c47b86d6904027
* | Detach bigram functionarities from unigram_dictionarysatok2010-12-026-290/+280
| | | | | | | | Change-Id: Ie35164a5f293e5370885a1ba13d6ed7caf6000ec
* | Refactor: Move utility functions and no suggestion functions from ↵satok2010-12-026-200/+220
| | | | | | | | | | | | unigram_dictionary.cpp to dictionary.cpp Change-Id: I6f695e4f5852547d2c00de5ee54a650fef9accbe
* | Fix parameters of native functions and refactor Dictionarysatok2010-12-028-668/+840
| | | | | | | | | | | | - created bigram/unigram dictionary classes Change-Id: I233a28ed8d611870db3f4cf8f25fc45b5d41529b
* | Move a logic for finding words with a missing character to the native code.satok2010-12-012-41/+72
| | | | | | | | Change-Id: I58338643830ff4f9708f78a9c26f75c8bf2ebf45
* | Add an easy way to output native debug logssatok2010-12-012-4/+21
|/ | | | Change-Id: Ieff2b8e60c5e7dedb7f86e17f7c37b349a912ab4
* Revert https://android-git.corp.google.com/g/#change,63791 as library ↵Ken Wakasa2010-09-031-2/+2
| | | | | | | | loading issue seems to have been fixed now. bug: 2963855 Change-Id: Iafdfda801083f85126c443508755e3cc711fbf52
* Fix UnsatisfiedLinkError for Latin IME. Don't use old NDK version in a ↵Amith Yamasani2010-08-311-2/+2
| | | | | | | | platform build. Also added a clean step, since it's only a Makefile change. Change-Id: Ide1684a5f34e99496e969edb8443dc4545b57306