aboutsummaryrefslogtreecommitdiffstats
path: root/native (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactor step3: const unigram_dictionarySatoshi Kataoka2012-06-082-47/+46
| | | | | | - make all functions in unigram_dictionary const Change-Id: I94a64865aa793435e6c81890e68d999f6374074e
* refactor native step 2Satoshi Kataoka2012-06-088-196/+175
| | | | | | - proximity_info is now stateless Change-Id: I62725bfe05b161fa8fc050ea6b50867e10a354e2
* Separate state from proximity_info step1Satoshi Kataoka2012-06-078-307/+472
| | | | | | Bug: 6548943 Change-Id: I7b4fbe20615a28151a74875be43b9f4a20e0dce9
* am fb3fdf15: Merge "Enhance the safety net in multiple word suggestions" ↵Satoshi Kataoka2012-05-312-5/+45
|\ | | | | | | | | | | | | into jb-dev * commit 'fb3fdf15040cb67c311047dea0144fa5aa071185': Enhance the safety net in multiple word suggestions
| * Enhance the safety net in multiple word suggestionsSatoshi Kataoka2012-05-312-5/+45
| | | | | | | | | | | | Bug: 6576793 Change-Id: I97100b482d3cf4e1b417c197b5d1e971a72b998d
* | am 6cbe204f: Fix the performance issue on suggesting ↵Satoshi Kataoka2012-05-305-15/+66
|\| | | | | | | | | | | | | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa * commit '6cbe204fce109fab652da15f4c8ea1ae35fca3e7': Fix the performance issue on suggesting aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
| * Fix the performance issue on suggesting aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaSatoshi Kataoka2012-05-305-15/+66
| | | | | | | | | | | | Bug: 6576793 Change-Id: I46f56654cd25dc28668ad75ac71e0e3beb8cdcf3
* | am 62cd919d: Remove a compiler warning.Jean Chalard2012-05-291-1/+1
|\| | | | | | | | | * commit '62cd919dca9ef85cdd045b539b3ef85e921c6e4c': Remove a compiler warning.
| * Remove a compiler warning.Jean Chalard2012-05-301-1/+1
| | | | | | | | Change-Id: Id2c949d03a2e38787cbf3c8f99313bcfe8610a1f
* | am 51705efc: Merge "Add a JNI to get the frequency" into jb-devSatoshi Kataoka2012-05-295-9/+22
|\| | | | | | | | | * commit '51705efc96c1c555cf9e0f557ea8cdc1c1c97781': Add a JNI to get the frequency
| * Merge "Add a JNI to get the frequency" into jb-devSatoshi Kataoka2012-05-295-9/+22
| |\
| | * Add a JNI to get the frequencySatoshi Kataoka2012-05-295-9/+22
| | | | | | | | | | | | | | | Bug: 4192129 Change-Id: I3f220f5a10114d4eb23956148076cf76220bda0f
* | | am b074dfea: Merge "Add a comment on a caveat for future reference." into jb-devJean Chalard2012-05-291-0/+5
|\| | | | | | | | | | | | | | * commit 'b074dfead504fba4039e4eaaded07c10244ff292': Add a comment on a caveat for future reference.
| * | Add a comment on a caveat for future reference.Jean Chalard2012-05-291-0/+5
| | | | | | | | | | | | Change-Id: I328a0cd4346275aac960e1369bf370688a004e11
* | | am bfba64bc: Merge "Compute the correct frequency for bigram prediction" ↵Jean Chalard2012-05-292-4/+9
|\| | | | | | | | | | | | | | | | | | | | into jb-dev * commit 'bfba64bcfd70ce8e3932d52c4b9f3182d33e1f55': Compute the correct frequency for bigram prediction
| * | Compute the correct frequency for bigram predictionJean Chalard2012-05-292-4/+9
| | | | | | | | | | | | Change-Id: I3196f48a0ca2ed5e94f430254d58e65d341398c8
* | | am 8f9f55dd: Merge "Fix a bug where the bigram freq would be underevaluated" ↵Jean Chalard2012-05-291-1/+1
|\| | | | | | | | | | | | | | | | | | | | into jb-dev * commit '8f9f55dd9d27f6c759c12416c872138b9b4661dc': Fix a bug where the bigram freq would be underevaluated
| * | Fix a bug where the bigram freq would be underevaluatedJean Chalard2012-05-291-1/+1
| | | | | | | | | | | | | | | | | | The difference in score is not large, but it's still a bug Change-Id: Ie22c2b6e1206e829c1c8af096469df05af14d47b
* | | am 22cf6958: Merge "Split a method to reconstruct freq from uni/bi freq" ↵Jean Chalard2012-05-291-7/+12
|\| | | | | | | | | | | | | | | | | | | | into jb-dev * commit '22cf695834009929a6c0fbcd75a9ff56efa04d83': Split a method to reconstruct freq from uni/bi freq
| * | Split a method to reconstruct freq from uni/bi freqJean Chalard2012-05-291-7/+12
| | | | | | | | | | | | | | | | | | This has no impact at all on the logic. Change-Id: I3788c8335cc193433ad9a7512b211a49bb2ffb02
* | | am bf61bba3: Merge "Fix two small possible bugs." into jb-devJean Chalard2012-05-292-2/+2
|\| | | | | | | | | | | | | | * commit 'bf61bba35feda09a2ad08475481ce042879ff5bb': Fix two small possible bugs.
| * | Fix two small possible bugs.Jean Chalard2012-05-292-2/+2
| |/ | | | | | | | | | | | | None of these had any real impact, but they were potential liabilities for the future Change-Id: I2de581f8b638e423d47a6d99b1a3c96af4c6150d
* | am 7b1570e6: Merge "Cleanup Makefiles of LatinIME" into jb-devKen Wakasa2012-05-231-28/+0
|\| | | | | | | | | * commit '7b1570e60c2e04fe7d132df758476b34685eb709': Cleanup Makefiles of LatinIME
| * Cleanup Makefiles of LatinIMEKen Wakasa2012-05-241-28/+0
| | | | | | | | Change-Id: Id4c6700bc045825eb64fb2b7ae57f23a6211441d
* | am a0ac31fc: Fix the issue on multiple words suggestionsatok2012-05-233-3/+9
|\| | | | | | | | | * commit 'a0ac31fcaa01c21592a6e7af243c14dada65cf3e': Fix the issue on multiple words suggestion
| * Fix the issue on multiple words suggestionsatok2012-05-233-3/+9
| | | | | | | | | | Bug: 6509844 Change-Id: I823074a2b29befc3e60c63699ab4dc7719105c63
* | am bc77adef: Merge "Return the bigram frequency if available." into jb-devJean Chalard2012-05-172-11/+26
|\| | | | | | | | | * commit 'bc77adefbb0305c5ec0e41ab01e3a085c47c21eb': Return the bigram frequency if available.
| * Merge "Return the bigram frequency if available." into jb-devJean Chalard2012-05-172-11/+26
| |\
| | * Return the bigram frequency if available.Jean Chalard2012-05-162-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | This concludes the work on bug#6313806. Don't submit it before the dictionaries are suitably amended. Bug: 6313806 Change-Id: Icfea45bd52bb9d8cc68ba2266f80640e3942bb7f
* | | Fix buildJean-Baptiste Queru2012-05-162-0/+2
|/ / | | | | | | Change-Id: I799811aa3afb59bba2e4086a063f5da03669bba3
* | Add missing includes.Ken Wakasa2012-05-166-0/+6
| | | | | | | | Change-Id: Ic7199045d0cffb208871f52cc167194013351d32
* | Use "float" instead of "double"satok2012-05-166-23/+23
| | | | | | | | Change-Id: I93ed4d88ede4058f081dd8d634b00dfff4e96d07
* | Merge "Reorder suggestions result according to auto correction threshold" ↵satok2012-05-162-22/+58
|\ \ | |/ |/| | | into jb-dev
| * Reorder suggestions result according to auto correction thresholdsatok2012-05-162-22/+58
| | | | | | | | | | Bug: 5413904 Change-Id: I3aa3a8109ba45d2129b58d8242866fd3dd3473cb
* | Fix a bug of handling single quote in the correction algorithmsatok2012-05-151-3/+5
|/ | | | | Bug: 6096247 Change-Id: I5490bbdee4ce1e3e0729ec1510a2baab85eeaf05
* Contacts dictionary rebuilds only when contact names have changed.Tom Ouyang2012-05-115-1/+43
| | | | | Bug: 6396600 Change-Id: Iad693ec4bab6351793d624e5c5b0a9f5c12a60e3
* Perform the actual bigram frequency lookup.Jean Chalard2012-05-104-19/+55
| | | | | | | | | 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-075-47/+60
| | | | | | | | | 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
* Fill in the bloom filter for bigram lookup.Jean Chalard2012-05-074-6/+34
| | | | | Bug: 6313806 Change-Id: Ib79e14f6f8b241f053da6069c15f19c71084317e
* Fill up a map of bigram addresses for lookup.Jean Chalard2012-05-024-3/+28
| | | | | | | | | | | | We don't want to do a linear search on each terminal when there may be 100+ bigrams for a given word because that would be disastrous for performance. Also, we need to resolve each bigram address anyway. This change resolves the addresses at first and puts them in a balanced tree so that lookup will be O(log(n)). Bug: 6313806 Change-Id: Ibf088035870b9acb41e948f0ab7af4726f2cee24
* Fetch and pass the bigram position on suggestions.Jean Chalard2012-04-264-16/+18
| | | | | | | This is a cherry-pick of change I2d81742f Bug: 6313806 Change-Id: Ic1190b7980d032bc11b57841bca040d980889b6b
* Pass the bigram list position from the top levelJean Chalard2012-04-243-44/+55
| | | | | | | | 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-245-34/+48
| | | | | | | | | 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-238-22/+22
| | | | | | | | | | 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
* Fix typo of some methods' nameTadashi G. Takaoka2012-04-181-1/+1
| | | | | | Also changes some methods' argument type from Locale to String. Change-Id: Ib68b528a450dc68a01546483403230f76500bee4
* Merge "Pass the previous word down to native code in getSuggestions"Jean Chalard2012-04-171-3/+9
|\
| * Pass the previous word down to native code in getSuggestionsJean Chalard2012-04-172-4/+9
| | | | | | | | Change-Id: I477b631d81ef58461e44954f3ae5fd895928bb97
* | Fix debug compilation + small cleanupJean Chalard2012-04-172-3/+0
| | | | | | | | Change-Id: Ia89d84f62ba38dee05d25fbc94698e889cf27d2c
* | Fix a native crashJean Chalard2012-04-171-0/+4
|/ | | | | | | This was introduced by Ieb2e306a which failed to keep the return behavior in case the word doesn't have a bigram. Change-Id: I6d2f0b79d41c4335e94696690c8331e314961133
* Preparatory refactoringJean Chalard2012-04-172-13/+23
| | | | | | | Split out getting the pointer to the bigrams to a separate function. This is a preparative change to bug#6313806 Change-Id: Ieb2e306a1151cd95dc1a16793c8dc2f7fed8b654