aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/unigram_dictionary.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix the issue on multiple words suggestionsatok2012-05-231-2/+6
| | | | | Bug: 6509844 Change-Id: I823074a2b29befc3e60c63699ab4dc7719105c63
* Add missing includes.Ken Wakasa2012-05-161-0/+1
| | | | Change-Id: Ic7199045d0cffb208871f52cc167194013351d32
* Use "float" instead of "double"satok2012-05-161-5/+5
| | | | Change-Id: I93ed4d88ede4058f081dd8d634b00dfff4e96d07
* Reorder suggestions result according to auto correction thresholdsatok2012-05-161-1/+2
| | | | | Bug: 5413904 Change-Id: I3aa3a8109ba45d2129b58d8242866fd3dd3473cb
* Perform the actual bigram frequency lookup.Jean Chalard2012-05-101-1/+2
| | | | | | | | | This still returns the unigram frequency, because the values stored for bigrams in the dictionary are not ready to be returned in-place instead of unigram values. Aside from this, the code is complete. Bug: 6313806 Change-Id: If7bb7b644730782277f0f6663334c170b7fe13fb
* Replace the bigram list position with the map and filterJean Chalard2012-05-071-25/+28
| | | | | | | | | Passing the position will not allow us a reasonable lookup time. Replace this with a map and bloom filter for very fast lookup. Bug: 6313806 Change-Id: I3a61c0001cbc987c1c3c7b8df635d4590a370144
* Pass the bigram list position from the top levelJean Chalard2012-04-241-29/+35
| | | | | | | | The position itself is still a const int = 0 until we have the previous word passed to the function. This basically does the plumbing. Bug: 6313806 Change-Id: Ib58995f334fe93e3ff5704d7c79f332017f101ac
* Add methods to inverse compute the probability.Jean Chalard2012-04-241-13/+18
| | | | | | | | | For now the probability is just returned with the same value it had, but this is some ground work that needs to be done anyway. Bug: 6313806 Change-Id: I9bb8b96b294109771208ade558c9ad56932d2f8e
* Pass words as int[] to the native code.Jean Chalard2012-04-231-1/+1
| | | | | | | | | | We need to get the bigrams during the call to getSuggestions for bug#6313806. We already give an int[] to getSuggestions and we wanted to get rid of char[]'s anyway because it doesn't work with surrogate pairs, so here we go. Bug: 6313806 Change-Id: I56ce99f1db6b3302cdf42f0527343bded837091e
* Replace the flags in getSuggestions with a boolean.Jean Chalard2012-04-061-16/+15
| | | | | | | | Change-Id: I0ec44df1979cb1dc21017ea290d2151a2af0e7cd Conflicts: java/src/com/android/inputmethod/latin/Suggest.java
* Enable using the flags read from the binary file.Jean Chalard2012-04-061-2/+2
| | | | Change-Id: Ib420c3e174ccc1a80c4b6fd066de3b7a2b6fb290
* Save the flags in a member in the unigram dictionary.Jean Chalard2012-04-061-2/+2
| | | | Change-Id: Ic8fad9110db6b97f98ace27af0f347b4e69de8c8
* Add a method to get the flags from a binary dictionary.Jean Chalard2012-04-061-2/+2
| | | | | | This method is not used yet Change-Id: Ic15d3d423aff2c83c712bc0aa56571d30755e663
* Remove write-only stuffJean Chalard2012-04-061-3/+1
| | | | Change-Id: I5ac8ab64c77a298502b3d063ea70db9b4da41716
* Read shortcuts as strings in the dictionary.Jean Chalard2012-04-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This has no impact on performance. Before: (0) 9.61 (0.01%) (1) 57514.58 (56.70%) (2) 10.55 (0.01%) (3) 10.79 (0.01%) (4) 133.20 (0.13%) (5) 43553.87 (42.94%) (6) 10.03 (0.01%) (20) 47.20 (0.05%) Total 101431.47 (sum of others 101289.84) After: (0) 10.52 (0.01%) (1) 56311.16 (56.66%) (2) 13.40 (0.01%) (3) 10.98 (0.01%) (4) 136.72 (0.14%) (5) 42707.92 (42.97%) (6) 9.79 (0.01%) (20) 51.35 (0.05%) Total 99390.76 (sum of others 99251.84) The difference is not significant with regard to measure imprecision Change-Id: I2e4f1ef7a5e99082e67dd27f56cf4fc432bb48fa
* Move the "src" directory as a preparation for Ib4a47342 and I66f6c5b9Ken Wakasa2012-03-301-0/+894
Change-Id: I3ab65059f6e356530484bfd0bba26a634a4cba65