aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/BinaryDictionaryTests.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move decoder specific constants to DecoderSpecificConstants.javaMohammadinamul Sheik2015-02-051-2/+2
| | | | Change-Id: Ie4d325b3152e1e7e424b8b436e222e194e4d9da0
* Move util classes under commonJean Chalard2014-11-071-1/+1
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* Update v4 format version from 402 to 403.Keisuke Kuroyanagi2014-10-311-80/+39
| | | | | | | | | | | | | | | | | | | | | | Without personalization: Total words: 1134774, Success Num: 899230, Success Percentage: 79.243% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1871, Bad Failure Percentage: 0.165% Failures, with auto-correction (F-C): 29084, F-C Percentage: 2.563% Max Keystrokes: 6072959, Min Keystrokes: 4436090, Keystroke Saving Percentage:26.953% Before: Total words: 1134646, Success Num: 925194, Success Percentage: 81.540% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1316, Bad Failure Percentage: 0.116% Failures, with auto-correction (F-C): 28288, F-C Percentage: 2.493% Max Keystrokes: 6072831, Min Keystrokes: 3946188, Keystroke Saving Percentage:35.019% After Total words: 1134659, Success Num: 944746, Success Percentage: 83.263% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1258, Bad Failure Percentage: 0.111% Failures, with auto-correction (F-C): 28016, F-C Percentage: 2.469% Max Keystrokes: 6072844, Min Keystrokes: 3387333, Keystroke Saving Percentage:44.222% Change-Id: I3af42ec37a11847c0429c28616e726f6a339247f
* Move Constants.java to the latin.common packageKen Wakasa2014-10-231-0/+1
| | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* Remove unused import and methodTadashi G. Takaoka2014-10-231-1/+0
| | | | | Bug: 18003991 Change-Id: Id6b67bf66b397301e5186826dba2b60df9cb4c65
* Use trigrams for personalization dict.Keisuke Kuroyanagi2014-10-231-58/+0
| | | | | 5Bug: 14425059 Change-Id: I73cf6904e569d60996a3b079f16ea6df0cb90f02
* Add latinime-common local libKen Wakasa2014-10-221-1/+1
| | | | | | | This is just a placeholder in this CL. It will be shared by LatinIME, dicttool, and tests. Change-Id: I6fb3516a5061555f6f24b29141c2871d2319b023
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-9/+7
| | | | | | | | | | | | | | | | | | | | | This CL fixes the following compiler warnings. - Indirect access to static member - Access to a non-accessible member of an enclosing type - Parameter assignment - Method can be static - Local variable declaration hides another field or variable - Value of local variable is not used - Unused import - Unused private member - Unnecessary 'else' statement - Unnecessary declaration of throw exception - Redundant type arguments - Missing '@Override' annotation - Unused '@SuppressWarning' annotations Bug: 18003991 Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
* Renaming "blacklist" flag to "possibly offensive"Adrian Velicu2014-10-211-12/+22
| | | | | | | | | No behaviour changes. Unified the overloaded FusionDictionary::add method to always take an isPossiblyOffensive argument. Bug: 11031090 Change-Id: I5741a023ca1ce842d2cf10d4f6c926b0efabaa78
* Change entry count limit.Keisuke Kuroyanagi2014-10-201-5/+27
| | | | | | Unigram 10K, Bigram 30K, Trigram 30K. Change-Id: Ibd19c6a2b618499df1c70000bad7b47498187f0a
* Merge "Simplify dictionary creation in unit tests."Keisuke Kuroyanagi2014-10-031-281/+83
|\
| * Simplify dictionary creation in unit tests.Keisuke Kuroyanagi2014-10-031-281/+83
| | | | | | | | Change-Id: Id1b41494701f54651d7f79aba426e15cca8d898d
* | Fix: NPE in unit test.Keisuke Kuroyanagi2014-10-031-8/+10
|/ | | | Change-Id: I769b43f2afa1151d5c0d9c408018c3932be377dc
* Introduce NgramProperty in Java side.Keisuke Kuroyanagi2014-10-011-8/+10
| | | | | Bug: 14425059 Change-Id: I8b3458ad22730b3dccbe0caea2c5930f5276dc82
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-23/+23
| | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* Merge "Get stats from dictionary."Keisuke Kuroyanagi2014-09-251-6/+10
|\
| * Get stats from dictionary.Keisuke Kuroyanagi2014-09-221-6/+10
| | | | | | | | | | Bug: 16553957 Change-Id: I70c7a7be3c902dc8a0dfe8f946f9ef75ba6c9655
* | Add small unit test for adding/removing trigrams.Keisuke Kuroyanagi2014-09-191-0/+76
|/ | | | | Bug:17097992 Change-Id: I0ed0b4a172130726d822dadb6d7a806b94130104
* Merge "Make PrevWordsInfo have multiple words' information."Keisuke Kuroyanagi2014-06-241-4/+5
|\
| * Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-251-4/+5
| | | | | | | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* | Support migration/dump of Beginning-of-Sentence entries.Keisuke Kuroyanagi2014-06-241-11/+26
|/ | | | | Bug: 14119293 Change-Id: Ie975138f819794d5c34a7a547be5a6117050e084
* Update unit test for beginning-of-sentence.Keisuke Kuroyanagi2014-06-121-11/+7
| | | | | Bug: 14119293 Change-Id: I594a1ca1096f0c12c678dd30eb75de905e55c5bb
* Implement getMaxProbabilityOfExactMatches().Keisuke Kuroyanagi2014-06-061-0/+29
| | | | | | Bug: 13142176 Bug: 15428247 Change-Id: I5be6d683be95505412615ca7c88260de1ea05f54
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-66/+55
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Version up dynamic dict format from 401 to 402.Keisuke Kuroyanagi2014-05-231-2/+2
| | | | Change-Id: Ibea36af905ade773ae3db3a5456f7b5a0ad7d220
* Extend jni methods and enable Beginning-of-Sentence.Keisuke Kuroyanagi2014-05-231-15/+64
| | | | | Bug: 14119293 Change-Id: I78fc877367dd0d6240eeacb750b6d2d0b93cba83
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-211-74/+86
| | | | | | | Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: Ib482390f8d15b37d44a1a54e8c243a9eaec3f815
* Revert "Use PrevWordsInfo for get/add/remove n-gram(bigram) entry."Ken Wakasa2014-05-201-86/+74
| | | | | | | | | | This reverts commit ff50b39176370ab80a33bfdcf9979603c08a88b3. Bug: 14119293 Bug: 14425059 Bug: 15102610 Change-Id: If278b4ab236e38d20d8cdc0761b0438911bd4ff9
* Use PrevWordsInfo for get/add/remove n-gram(bigram) entry.Keisuke Kuroyanagi2014-05-201-74/+86
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I12e9ba977c153b514c6591ab52940712fd0874e3
* Quit use bigram probability diff for ver4 dict.Keisuke Kuroyanagi2014-05-151-80/+115
| | | | Change-Id: I2cfcfbcf351877d1dff466a24974dbb05908f14e
* Add VERSION4_DEV(402) in Java side and use it for tests.Keisuke Kuroyanagi2014-05-141-23/+68
| | | | | Bug: 13406708 Change-Id: I7c9c53bf34d12dced7331a359a83f6444490783a
* Add large unit test for dictionary migration.Keisuke Kuroyanagi2014-05-131-0/+85
| | | | | Bug: 13406708 Change-Id: Ic1eb627139a1ff57c0000d95d9bd57aa3609f753
* Add VERSION4_TEST for testing.Keisuke Kuroyanagi2014-05-091-4/+38
| | | | | Bug: 13406708 Change-Id: I0b434717ea3edbb131650af634c53cfbfe113c3e
* Support creating BinaryDictionary without creating dict file.Keisuke Kuroyanagi2014-04-221-0/+31
| | | | | Bug: 14166482 Change-Id: Ic8c78ec2c8f39358a1f085a041b608972a380eef
* Revert "Support creating BinaryDictionary without creating dict file."Keisuke Kuroyanagi2014-04-221-31/+0
| | | | | | This reverts commit 89939b870876b36791a47470ce852e4fcdfe86f2. Change-Id: I8ca1b55609ad305a93178063bd88bd1cede872af
* Support creating BinaryDictionary without creating dict file.Keisuke Kuroyanagi2014-04-221-0/+31
| | | | | Bug: 14166482 Change-Id: Ib065279f96e227ab0fee7c8141560c4ada744d3b
* Fix unit tests.Keisuke Kuroyanagi2014-03-141-12/+11
| | | | Change-Id: I2a85763358e1eef0f76ef827413afffeb4cb8058
* Unit test update for I7ed95a54344d8b.Keisuke Kuroyanagi2014-03-121-2/+8
| | | | Change-Id: Ic8af56b8741ee7c231d73ce6a660fd32c9f5a3b3
* Separate WeightedString from FusionDictionary.Keisuke Kuroyanagi2014-03-061-1/+1
| | | | | | Bug: 8187060 Change-Id: I40c1dafca3eb52244c64fdb4c1db30a56385d678
* Separate utility methods from BinaryDictionary.Keisuke Kuroyanagi2014-03-051-1/+2
| | | | | Bug: 8187060 Change-Id: Ice2984e332b7bd3bb17174aefc80b5635b72fc50
* Make InputLogicTest more robustTadashi G. Takaoka2014-02-131-10/+0
| | | | Change-Id: I134f14971126cbeed05b472c08747f2b88ad30e6
* Merge "Consolidate WordProperty and Word."Keisuke Kuroyanagi2014-02-061-23/+20
|\
| * Consolidate WordProperty and Word.Keisuke Kuroyanagi2014-02-061-23/+20
| | | | | | | | | | | | Bug: 11281877 Bug: 12810574 Change-Id: I9dc99188f80f25a8780c1860dab46e4aa80a23e5
* | Merge "Make WeightedString have ProbabilityInfo."Keisuke Kuroyanagi2014-02-051-7/+9
|\|
| * Make WeightedString have ProbabilityInfo.Keisuke Kuroyanagi2014-02-051-7/+9
| | | | | | | | | | | | Bug: 11281877 Bug: 12810574 Change-Id: I265e3d8654c75766cd0e0d09d67ef62b4566298a
* | [HD04] Make the locale mandatory.Jean Chalard2014-02-051-2/+2
|/ | | | | Bug: 11281748 Change-Id: I69281b0053bec404c3e3c713ade3f65a140f51b1
* Implement Ver4PatriciaTriePolicy::getNextWordAndNextToken.Keisuke Kuroyanagi2014-02-041-0/+93
| | | | | Bug: 12810574 Change-Id: Idea44f03c477964f58e65fbf2b55e3fcd77a2934
* Get bigram information via getWordProperty().Keisuke Kuroyanagi2014-02-031-11/+66
| | | | | Bug: 12810574 Change-Id: I2750a5659ccbc3e31307c28e35dd9a1dbdffbeee
* Extend jni interface to get bigrams in WordProperty.Keisuke Kuroyanagi2014-01-311-32/+33
| | | | | Bug: 12810574 Change-Id: Ia4b88d02ea8790a5c47d32376cc0b84c3e071ddd
* Rename UnigramProperty to WordProperty.Keisuke Kuroyanagi2014-01-311-10/+8
| | | | | Bug: 12810574 Change-Id: If5ddd803948aaf6e491ddcbaa5436fb3af3f7257