aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/utils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move dictionary code to top level dictionary dir.Keisuke Kuroyanagi2014-12-171-4/+4
| | | | | Bug: 18725954 Change-Id: Ia442ba4b5d84311057d83edf6e7aeb151d6a820b
* Remove dependency on jni.h from WordProperty.Keisuke Kuroyanagi2014-12-152-0/+98
| | | | | Bug: 18725954 Change-Id: Ic97d3a56b036ff042322c9f794504064046fd7d7
* Enable Quadgram for personalized dicts.Keisuke Kuroyanagi2014-11-251-0/+1
| | | | | | | | | | | | | | | | Before: Total words: 1134659, Success Num: 944709, Success Percentage: 83.259% 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): 28013, F-C Percentage: 2.469% Max Keystrokes: 6072844, Min Keystrokes: 3347332, Keystroke Saving Percentage:44.880% After: Total words: 1134665, Success Num: 945026, Success Percentage: 83.287% Bad Failures, with auto-correction (typed word == expected word, output word != expected word): 1271, Bad Failure Percentage: 0.112% Failures, with auto-correction (F-C): 27756, F-C Percentage: 2.446% Max Keystrokes: 6072850, Min Keystrokes: 3290996, Keystroke Saving Percentage:45.808% Change-Id: I16af52a3e9c371b95fd6f0741f45ee6b2443bea6
* Use enum to specify ngram type.Keisuke Kuroyanagi2014-11-251-0/+62
| | | | Change-Id: Ie28768ceadcd7a2d940c57eb30be7d4c364e509f
* Fix the base character of D with strokeJean Chalard2014-11-191-1/+6
| | | | | Bug: 18436480 Change-Id: Ic92cae7c85c07c8f62a5b6e69d2b71e204aff50d
* Implement IntArrayView::split for dicttoolkit.Keisuke Kuroyanagi2014-11-111-0/+23
| | | | | Bug: 10059681 Change-Id: Ic29e79d049bb532727cf5cb1e529fec5d35156ed
* Make profiler use getTimeInMicroSec().Keisuke Kuroyanagi2014-11-111-0/+86
| | | | | Bug: 17797064 Change-Id: Ie992c9454edfc3bf93d5ea367c3a4427b513a205
* Use trigrams for personalization dict.Keisuke Kuroyanagi2014-10-231-0/+3
| | | | | 5Bug: 14425059 Change-Id: I73cf6904e569d60996a3b079f16ea6df0cb90f02
* Support ngram entry migration.Keisuke Kuroyanagi2014-10-221-0/+11
| | | | | Bug: 14425059 Change-Id: I98cb9fa303af2d93a0a3512e8732231c564e3c5d
* Rename prev_words_info.h to ngram_context.hKeisuke Kuroyanagi2014-10-091-1/+1
| | | | | Bug: 14425059 Change-Id: I0e906631ecad2361a8198b3f9e3394bb22c5bf83
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-10-091-2/+2
| | | | | Bug: 14425059 Change-Id: I30703fc80e9450d4e2dbfec965e7f9f4468f6a11
* Use std::move for dictionary properties.Keisuke Kuroyanagi2014-09-251-0/+4
| | | | Change-Id: I15056b36b7493f4bac1dbcbb46a0b44343ede153
* Pass prevWordCount to native code for getSuggestion.Keisuke Kuroyanagi2014-09-181-7/+3
| | | | | Bug: 14425059 Change-Id: Id2b49a448982c997e5c0a22445b115e675156c3e
* Merge "Use ReadOnlyByteArrayView in PatriciaTriePolicy."Keisuke Kuroyanagi2014-09-171-0/+7
|\
| * Use ReadOnlyByteArrayView in PatriciaTriePolicy.Keisuke Kuroyanagi2014-09-171-0/+7
| | | | | | | | Change-Id: I4ef01c0af73f27c256cc1a719343be836913dc71
* | Add firstOrDefault and lastOrDefault to IntArrayView.Keisuke Kuroyanagi2014-09-171-0/+14
|/ | | | Change-Id: I854c02eff3fa0b53c72a5f1cabce001f4854ada0
* Update input checking logic for adding/removing n-gram.Keisuke Kuroyanagi2014-09-161-2/+7
| | | | | Bug: 14425059 Change-Id: Ifb4e3c3f06aaf9a16f632ff208ba76cf741cea83
* Use WordIdArrayView for prevWordIds.Keisuke Kuroyanagi2014-09-111-3/+5
| | | | | Bug: 14425059 Change-Id: Ia84fb997d89564e60111b46ca83bbfa3b187f316
* Implement IntArrayView.copyToBuffer().Keisuke Kuroyanagi2014-09-111-1/+8
| | | | | Bug: 14425059 Change-Id: Ic1b7de72701eae0c0b1bb28d12514099446a66a9
* Implement LanguageModelDictContent.getWordProbability().Keisuke Kuroyanagi2014-09-101-3/+3
| | | | | Bug: 14425059 Change-Id: I290a05cee6f341caa25fb222892505529cef1eb7
* Add CharUtilsTest.Keisuke Kuroyanagi2014-09-032-15/+15
| | | | Change-Id: I69b57d88a5376393b5d09d8b8e056c82cb8b8a3c
* Implement IntArrayView::skip().Keisuke Kuroyanagi2014-08-281-0/+7
| | | | Change-Id: Ib7f13963ac1d9c64eff2c08391154c6a25024126
* Use IntArrayView for dictionary structure policy.Keisuke Kuroyanagi2014-08-271-0/+1
| | | | Change-Id: I0dc94908259d70d5085ff22abf422d90affb1452
* Use byte array view in ver4 dict contents.Keisuke Kuroyanagi2014-08-181-3/+5
| | | | Change-Id: Icf79a51a200f7ccd775264d1a83dd61e7dcfbab2
* Add bigrams to language model content.Keisuke Kuroyanagi2014-08-121-0/+5
| | | | | | Bug: 14425059 Change-Id: Id81e3775ea0104750a23e3dca62c00681ed8dc2e
* Use IntArrayView to add/remove n-gram entry.Keisuke Kuroyanagi2014-08-061-0/+11
| | | | | Bug: 14425059 Change-Id: I734f12dfde5161abdfb019a6391677dba8984ff4
* Add/Get n-gram probability entry in languageModelDictContentKeisuke Kuroyanagi2014-08-061-0/+8
| | | | Bug: 14425059 Change-Id: I7926c3812f89b9a71fe1873a5bc32f793f91b640
* Add methods for unigrams to LanguageModelDictContent.Keisuke Kuroyanagi2014-08-051-0/+6
| | | | | Bug: 14425059 Change-Id: I0a6b480a3d4735787ffac68c47b4ffefc3f1b8a5
* Make MmappedBuffer use byte array view.Keisuke Kuroyanagi2014-08-011-0/+5
| | | | | Bug: 16691311 Change-Id: I2122c01ee27c33e11dec52643925c069927bea2b
* Add memory view class for int and uint8_t.Keisuke Kuroyanagi2014-08-012-0/+162
| | | | | Bug: 16691311 Change-Id: I32eb692cdb758861e24b772fdcda57642b95ae1b
* Extend jni method to use multiple previous words.Keisuke Kuroyanagi2014-06-261-0/+32
| | | | | Bug: 14425059 Change-Id: I8150e8812ee32f8c713315a234b52e5b3a79d7a0
* Support migration/dump of Beginning-of-Sentence entries.Keisuke Kuroyanagi2014-06-242-7/+21
| | | | | Bug: 14119293 Change-Id: Ie975138f819794d5c34a7a547be5a6117050e084
* Support Beginning-of-Sentence in native codeKeisuke Kuroyanagi2014-05-231-0/+14
| | | | | Bug: 14119293 Change-Id: I0f382e33a19bf481823b23405d454de61ec835ff
* Use JniDataUtils::putXxxToArray() to output a value.Keisuke Kuroyanagi2014-05-141-0/+9
| | | | Change-Id: Ifb7bed6623b01acb524566a0fe00dcbdf7273888
* Filter out control characters and non-unicode code points.Keisuke Kuroyanagi2014-05-142-3/+43
| | | | | | Bug: 14119293 Bug: 13758761 Change-Id: I6b79cff0714152807f5e20b7a75060a0a772b28b
* Use JniDataUtils::outputCodePoints() to output code pointsKeisuke Kuroyanagi2014-05-141-0/+12
| | | | | | | Bug: 14119293 Bug: 13758761 Change-Id: I516d2f96e219e6e65246f502186ccb9bd5f0670f
* Skip PtNodes with non-Unicode code points for suggestion.Keisuke Kuroyanagi2014-05-122-0/+10
| | | | | Bug: 14119293 Change-Id: Id1d3b789b5f18757070878dba35a7980bfb44591
* Implement latinime_BinaryDictionary_createOnMemory().Keisuke Kuroyanagi2014-04-221-7/+0
| | | | | Bug: 14166482 Change-Id: If7ec3345ab34edcd6bc5cef9e72580ced894a0e3
* Separate JniDataUtils::constructAttributeMap().Keisuke Kuroyanagi2014-04-211-0/+29
| | | | | Bug: 14166482 Change-Id: Ic2dc407231743ea668fe0ab8869eb8a7f8b9625f
* Merge "Make addUnigramWord use UnigramProperty."Keisuke Kuroyanagi2014-04-141-0/+43
|\
| * Make addUnigramWord use UnigramProperty.Keisuke Kuroyanagi2014-04-141-0/+43
| | | | | | | | | | Bug: 13406708 Change-Id: I10c108dd7047fe230c60495f13800f32fdc46d0d
* | s/hash_map_compat/unordered_map/Ken Wakasa2014-04-111-28/+0
|/ | | | Change-Id: Icce5f9a12b04bdd7540c52750d303a585d71f28a
* Merge "Use unique_ptr."Keisuke Kuroyanagi2014-03-071-81/+0
|\
| * Use unique_ptr.Keisuke Kuroyanagi2014-03-071-81/+0
| | | | | | | | Change-Id: Id92a5b07da4f7f95e2cd293ce8dc1a5f979b7853
* | Revert "Revert "Use std::min() and std::max()""Keisuke Kuroyanagi2014-03-071-1/+2
|/ | | | | | This reverts commit f63000abeabfaabde5c1ea2201d63d0c4850f1e2. Change-Id: I6056d176a13c6ecad38e658ab8778bd898291d02
* Revert "Use std::min() and std::max()"Ken Wakasa2014-03-071-2/+1
| | | | | | | | | | This somehow breaks TRT. bug: 13350753 This reverts commit cf612a3abfd0cc244f8449db2cf11a0a7c680a2f. Change-Id: I812f067e7cc8106b054527732dc6fe4efd7cc0fe
* Use std::min() and std::max()Ken Wakasa2014-03-061-1/+2
| | | | Change-Id: I2992fa16692ace2a6febedc4393812faf763638f
* Switch to C++11Ken Wakasa2014-03-061-11/+5
| | | | Change-Id: Ib2970327c36422d7b11103d52ba7e9e52db5554f
* Make dotted i the base character of dotless i.Jean Chalard2014-02-171-1/+2
| | | | | | | | | | | | This is already the case for the capital version, and natives Turkish speakers seem to think it should be the case. An important reason to make it so is that the Turkish keyboard has only the dotless i as a "more keys" key, so it's really hard to type words with a dotless i without this, especially those with several of them. Bug: 11519119 Change-Id: I4df2a289783e4eb3c1291b8ad0a2ba5947bf7671
* [HD04] Make the locale mandatory.Jean Chalard2014-02-052-0/+11
| | | | | Bug: 11281748 Change-Id: I69281b0053bec404c3e3c713ade3f65a140f51b1