/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
H A D | PendingAttribute.java | 28 public PendingAttribute(final int frequency, final int address) { argument 29 mFrequency = frequency;
|
H A D | CharGroupInfo.java | 39 final int[] characters, final int frequency, final int parentAddress, 46 mFrequency = frequency; 38 CharGroupInfo(final int originalAddress, final int endAddress, final int flags, final int[] characters, final int frequency, final int parentAddress, final int childrenAddress, final ArrayList<WeightedString> shortcutTargets, final ArrayList<PendingAttribute> bigrams) argument
|
H A D | FusionDictionary.java | 58 * A string with a frequency. 65 public WeightedString(String word, int frequency) { argument 67 mFrequency = frequency; 85 * A group of characters, with a frequency, shortcut targets, bigrams, and children. 92 * in the frequency, where NOT_A_TERMINAL (= -1) means this is not a terminal and any other 93 * value is the frequency of this terminal. A terminal may have non-null shortcuts and/or 110 final ArrayList<WeightedString> bigrams, final int frequency, 113 mFrequency = frequency; 122 final ArrayList<WeightedString> bigrams, final int frequency, 125 mFrequency = frequency; 109 CharGroup(final int[] chars, final ArrayList<WeightedString> shortcutTargets, final ArrayList<WeightedString> bigrams, final int frequency, final boolean isNotAWord, final boolean isBlacklistEntry) argument 121 CharGroup(final int[] chars, final ArrayList<WeightedString> shortcutTargets, final ArrayList<WeightedString> bigrams, final int frequency, final boolean isNotAWord, final boolean isBlacklistEntry, final Node children) argument 153 addBigram(final String word, final int frequency) argument 207 update(final int frequency, final ArrayList<WeightedString> shortcutTargets, final ArrayList<WeightedString> bigrams, final boolean isNotAWord, final boolean isBlacklistEntry) argument 311 add(final String word, final int frequency, final ArrayList<WeightedString> shortcutTargets, final boolean isNotAWord) argument 354 setBigram(final String word1, final String word2, final int frequency) argument 380 add(final int[] word, final int frequency, final ArrayList<WeightedString> shortcutTargets, final boolean isNotAWord, final boolean isBlacklistEntry) argument [all...] |
H A D | Word.java | 25 * Utility class for a word with a frequency. 39 public Word(final String word, final int frequency, argument 44 mFrequency = frequency; 65 * A Word x is greater than a word y if x has a higher frequency. If they have the same 66 * frequency, they are sorted in lexicographic order. 78 * Words are equal if they have the same frequency, the same spellings, and the same
|
H A D | BinaryDictInputOutput.java | 359 // If terminal, one byte for the frequency 776 * @param bigramFrequency the frequency of the bigram, 0..255. 777 * @param unigramFrequency the unigram frequency of the same word, 0..255. 808 // value of the 16th step. In all justice, if the bigram frequency is low enough to be 810 // unigram frequency) then the unigram frequency itself is the best approximation of the 826 // step pointed by the discretized frequency. 859 * @param frequency the frequency of the attribute, 0..15 862 private static final int makeShortcutFlags(final boolean more, final int frequency) { argument [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
H A D | WnnWord.java | 32 public int frequency; field in class:WnnWord 60 * @param frequency The score of word 62 public WnnWord(String candidate, String stroke, int frequency) { argument 63 this(0, candidate, stroke, new WnnPOS(), frequency, 0); 83 * @param frequency The score of word 85 public WnnWord(String candidate, String stroke, WnnPOS posTag, int frequency) { argument 86 this(0, candidate, stroke, posTag, frequency, 0); 96 * @param frequency The score of word 98 public WnnWord(int id, String candidate, String stroke, WnnPOS posTag, int frequency) { argument 99 this(id, candidate, stroke, posTag, frequency, 112 WnnWord(int id, String candidate, String stroke, WnnPOS posTag, int frequency, int attribute) argument [all...] |
H A D | WnnClause.java | 32 * @param frequency The frequency of the clause 34 public WnnClause(String candidate, String stroke, WnnPOS posTag, int frequency) { argument 38 frequency); 52 stem.frequency, 68 stem.frequency,
|
H A D | WnnSentence.java | 43 this.frequency = 0; 54 this.frequency = headClause.frequency; 69 this.frequency = headClause.frequency; 86 this.frequency = clause.frequency; 104 this.frequency = prev.frequency + clause.frequency; [all...] |
H A D | OpenWnnDictionaryImpl.java | 101 /** The base frequency of user dictionary */ 103 /** The base frequency of learning dictionary */ 655 result.frequency = mFrequencyOffsetOfUserDictionary; 657 result.frequency = mFrequencyOffsetOfLearnDictionary; 686 result.frequency = OpenWnnDictionaryImplJni.getFrequency( this.mWnnWork );
|
/packages/inputmethods/LatinIME/native/jni/src/ |
H A D | bigram_dictionary.h | 38 bool addWordBigram(unsigned short *word, int length, int frequency, 42 void searchForTerminalNode(int addressLookingFor, int frequency);
|
H A D | bigram_dictionary.cpp | 39 bool BigramDictionary::addWordBigram(unsigned short *word, int length, int frequency, argument 46 AKLOGI("Bigram: Found word = %s, freq = %d :", s, frequency); 53 if (frequency > bigramFreq[insertAt] || (bigramFreq[insertAt] == frequency 66 bigramFreq[insertAt] = frequency; 130 // Due to space constraints, the frequency for bigrams is approximate - the lower the 131 // unigram frequency, the worse the precision. The theoritical maximum error in 132 // resulting frequency is 8 - although in the practice it's never bigger than 3 or 4 135 const int frequency = local 137 if (addWordBigram(bigramBuffer, length, frequency, bigramFre 185 const int frequency = BinaryFormat::MASK_ATTRIBUTE_FREQUENCY & bigramFlags; local [all...] |
H A D | defines.h | 39 const int rank, const int frequency) { 52 AKLOGI("%2d [ %s ] (%d)", rank, charBuf, frequency); 355 /* heuristic... This should be changed if we change the unit of the frequency. */ 38 dumpWordInfo(const unsigned short *word, const int length, const int rank, const int frequency) argument
|
H A D | unigram_dictionary.cpp | 65 static inline void addWord(unsigned short *word, int length, int frequency, argument 67 queue->push(frequency, word, length, type); 170 // bigramMap contains the association <bigram address> -> <bigram frequency> 759 // It will compare the frequency to the max frequency, and if greater, will 761 // write the new maximum frequency if it changed. 773 // Will find the highest frequency of the words like the one passed as an argument, 796 // we want to traverse its children (or if the inputSize match, evaluate its frequency). 803 const int frequency = BinaryFormat::readFrequencyWithoutMovingPointer(root, pos); local 804 onTerminalWordLike(frequency, newWor [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
H A D | UserHistoryDictIOUtilsTests.java | 52 * Return same frequency for all words and bigrams 213 final String shortcutTarget, final int frequency) { 214 Log.d(TAG, "in: setUnigram: " + word + "," + frequency); 215 resultList.addBigram(null, word, (byte)frequency); 218 public void setBigram(final String word1, final String word2, final int frequency) { 219 Log.d(TAG, "in: setBigram: " + word1 + "," + word2 + "," + frequency); 220 resultList.addBigram(word1, word2, (byte)frequency); 237 final String shortcutTarget, final int frequency) { 238 Log.d(TAG, "in: setUnigram: " + word + "," + frequency); 239 resultList2.addBigram(null, word, (byte)frequency); [all...] |
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
H A D | OpenWnnClauseConverterJAJP.java | 28 /** Score(frequency value) of word in the learning dictionary */ 30 /** Score(frequency value) of word in the user dictionary */ 178 if (sentence[idx].frequency > sentence[start-1].frequency + CLAUSE_COST + FREQ_LEARN) { 183 if (sentence[idx].frequency > CLAUSE_COST + FREQ_LEARN) { 213 ws.frequency += CLAUSE_COST; 216 if (sentence[idx] == null || (sentence[idx].frequency < ws.frequency)) { 295 if (all || stem.frequency > max) { 301 max = stem.frequency; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | UserHistoryDictionary.java | 229 public void setUnigram(String word, String shortcutTarget, int frequency) { 232 Log.d(TAG, "load unigram: " + word + "," + frequency); 234 dictionary.addWord(word, shortcutTarget, frequency); 235 mBigramList.addBigram(null, word, (byte)frequency); 239 public void setBigram(String word1, String word2, int frequency) { 244 Log.d(TAG, "load bigram: " + word1 + "," + word2 + "," + frequency); 248 : new ForgettingCurveParams(frequency, now, last)); 250 mBigramList.addBigram(word1, word2, (byte)frequency);
|
H A D | ExpandableBinaryDictionary.java | 178 protected void addWord(final String word, final String shortcutTarget, final int frequency) { argument 180 mFusionDictionary.add(word, frequency, null, false /* isNotAWord */); 184 shortcutTargets.add(new WeightedString(shortcutTarget, frequency)); 185 mFusionDictionary.add(word, frequency, shortcutTargets, false /* isNotAWord */); 195 protected void setBigram(final String prevWord, final String word, final int frequency) { argument 196 mFusionDictionary.setBigram(prevWord, word, frequency);
|
H A D | UserBinaryDictionary.java | 217 * @param frequency the frequency of occurrence of the word. A frequency of 255 is considered 219 * @TODO use a higher or float range for frequency 221 public synchronized void addWordToUserDictionary(final String word, final int frequency) { argument 227 // TODO: Add an argument to the intent to specify the frequency. 247 final int frequency = cursor.getInt(indexFrequency); 250 super.addWord(word, null, frequency); 253 super.addWord(shortcut, word, frequency);
|
H A D | ExpandableDictionary.java | 36 // Bigram frequency is a fixed point number with 1 meaning 1.2 and 255 meaning 1.8. 94 public NextStaticWord(Node word, int frequency) { argument 96 mFrequency = frequency; 198 public void addWord(final String word, final String shortcutTarget, final int frequency) { argument 202 addWordRec(mRoots, word, 0, shortcutTarget, frequency, null); 206 final String shortcutTarget, final int frequency, Node parentNode) { 239 childNode.mFrequency = Math.max(frequency, childNode.mFrequency); 246 addWordRec(childNode.mChildren, word, depth + 1, shortcutTarget, frequency, childNode); 346 * Returns the word's frequency or -1 if not found 387 * @param finalFreq the frequency fo 205 addWordRec(NodeArray children, final String word, final int depth, final String shortcutTarget, final int frequency, Node parentNode) argument 527 setBigramAndGetFrequency(String word1, String word2, int frequency) argument 543 setBigramAndGetFrequency( String word1, String word2, int frequency, ForgettingCurveParams fcp) argument [all...] |
H A D | UserHistoryDictIOUtils.java | 46 public void setUnigram(final String word, final String shortcutTarget, final int frequency); argument 47 public void setBigram(final String word1, final String word2, final int frequency); argument
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
H A D | DictionaryBackupAgent.java | 163 int frequency = cursor.getInt(COLUMN_FREQUENCY); 169 String out = name + SEPARATOR + frequency + SEPARATOR + locale + SEPARATOR + appId 218 String frequency; 221 frequency = st.nextToken(); 230 int frequencyInt = Integer.parseInt(frequency); 233 if (!TextUtils.isEmpty(frequency)) {
|