/packages/inputmethods/LatinIME/dictionaries/ |
D | iw_wordlist.combined.gz | ... עברית,date=1393228136,version=44
2 word=של,f=209,flags=, |
D | en_US_wordlist.combined.gz |
|
D | sl_wordlist.combined.gz | ... Slovenščina,date=1393228152,version=44
2 word=je,f=219,flags=, |
D | nb_wordlist.combined.gz | ... bokmål,date=1393228136,version=44
2 word=i,f=217,flags=, ... |
D | da_wordlist.combined.gz | ... Dansk,date=1393228134,version=44
2 word=i,f=215,flags=, |
D | lv_wordlist.combined.gz | ... Latviešu,date=1393228136,version=44
2 word=un,f=213,flags=, ... |
D | lt_wordlist.combined.gz |
|
D | cs_wordlist.combined.gz | ... Čeština,date=1393228134,version=44
2 word=a,f=213,flags=, ... |
D | en_emoji.combined.gz |
|
D | fr_emoji.combined.gz | ... fr,date=1393244559,version=44
2 word=plus,f=188,not_a_word=true ... |
D | sample.combined | 10 # Each word has a `word' entry and at least a `f' argument denoting its 15 # explicitly. An entry may be made not a word by adding a `not_a_word' 20 # Each word may or may not have any number of shortcut target lines 23 # 15, which is then taken to be the whitelist target of this word. 25 # Each word may also have any number of bigram lines starting with a 26 # `bigram' entry containing the following word whose frequency should 27 # override the unigram frequency when following the word this bigram is 31 word=sample,f=200 33 word=wordlist,f=180 34 word=shortcut,f=176 [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
D | OpenWnnEngineEN.java | 108 WnnWord word; in getCandidate() local 111 while ((word = mDictionary.getNextWord()) != null) { in getCandidate() 113 char c = word.candidate.charAt(0); in getCandidate() 120 … word.candidate = Character.toString(Character.toUpperCase(c)) + word.candidate.substring(1); in getCandidate() 124 word.candidate = word.candidate.toUpperCase(); in getCandidate() 128 if (word == null) { in getCandidate() 132 addCandidate(word); in getCandidate() 162 private boolean addCandidate(WnnWord word) { in addCandidate() argument 163 if (word.candidate == null || mCandTable.containsKey(word.candidate)) { in addCandidate() 166 if (mFilter != null && !mFilter.isAllowed(word)) { in addCandidate() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | BinaryDictionary.java | 181 private static native int getProbabilityNative(long dict, int[] word); in getProbabilityNative() argument 182 private static native int getMaxProbabilityOfExactMatchesNative(long dict, int[] word); in getMaxProbabilityOfExactMatchesNative() argument 184 boolean[] isBeginningOfSentenceArray, int[] word); in getNgramProbabilityNative() argument 185 private static native void getWordPropertyNative(long dict, int[] word, in getWordPropertyNative() argument 201 private static native boolean addUnigramEntryNative(long dict, int[] word, int probability, in addUnigramEntryNative() argument 204 private static native boolean removeUnigramEntryNative(long dict, int[] word); in removeUnigramEntryNative() argument 207 int[] word, int probability, int timestamp); in addNgramEntryNative() argument 209 int[][] prevWordCodePointArrays, boolean[] isBeginningOfSentenceArray, int[] word); in removeNgramEntryNative() argument 212 int[] word, boolean isValidWord, int count, int timestamp); in updateEntriesForWordWithNgramContextNative() argument 352 public boolean isInDictionary(final String word) { in isInDictionary() argument [all …]
|
D | ExpandableBinaryDictionary.java | 297 public void addUnigramEntry(final String word, final int frequency, in addUnigramEntry() argument 302 addUnigramLocked(word, frequency, isNotAWord, isPossiblyOffensive, timestamp); in addUnigramEntry() 307 protected void addUnigramLocked(final String word, final int frequency, in addUnigramLocked() argument 309 if (!mBinaryDictionary.addUnigramEntry(word, frequency, in addUnigramLocked() 311 Log.e(TAG, "Cannot add unigram entry. word: " + word); in addUnigramLocked() 318 public void removeUnigramEntryDynamically(final String word) { in removeUnigramEntryDynamically() argument 328 if (!binaryDictionary.removeUnigramEntry(word)) { in removeUnigramEntryDynamically() 330 Log.i(TAG, "Cannot remove unigram entry: " + word); in removeUnigramEntryDynamically() 340 public void addNgramEntry(@Nonnull final NgramContext ngramContext, final String word, in addNgramEntry() argument 350 addNgramEntryLocked(ngramContext, word, frequency, timestamp); in addNgramEntry() [all …]
|
D | ContactsBinaryDictionary.java | 98 for (String word : accountVocabulary) { in loadDeviceAccountsEmailAddressesLocked() 100 Log.d(TAG, "loadAccountVocabulary: " + word); in loadDeviceAccountsEmailAddressesLocked() 103 addUnigramLocked(word, ContactsDictionaryConstants.FREQUENCY_FOR_CONTACTS, in loadDeviceAccountsEmailAddressesLocked() 141 String word = name.substring(i, end); in addNameLocked() local 143 Log.d(TAG, "addName word = " + word); in addNameLocked() 148 final int wordLen = StringUtils.codePointCount(word); in addNameLocked() 151 Log.d(TAG, "addName " + name + ", " + word + ", " + ngramContext); in addNameLocked() 154 addUnigramLocked(word, in addNameLocked() 161 word, in addNameLocked() 166 new NgramContext.WordInfo(word)); in addNameLocked()
|
D | DictionaryFacilitatorImpl.java | 543 final NgramContext ngramContext, final String word, final boolean wasAutoCapitalized, in addWordToUserHistory() argument 550 final int maxFreq = getFrequency(word); in addWordToUserHistory() 554 final String lowerCasedWord = word.toLowerCase(dictionaryGroup.mLocale); in addWordToUserHistory() 557 if (isValidSuggestionWord(word) && !isValidSuggestionWord(lowerCasedWord)) { in addWordToUserHistory() 563 secondWord = word; in addWordToUserHistory() 583 secondWord = word; in addWordToUserHistory() 593 private void removeWord(final String dictName, final String word) { in removeWord() argument 596 dictionary.removeUnigramEntryDynamically(word); in removeWord() 601 public void unlearnFromUserHistory(final String word, in unlearnFromUserHistory() argument 606 removeWord(Dictionary.TYPE_USER_HISTORY, word); in unlearnFromUserHistory() [all …]
|
D | Dictionary.java | 111 public boolean isValidWord(final String word) { in isValidWord() argument 112 return isInDictionary(word); in isValidWord() 118 abstract public boolean isInDictionary(final String word); in isInDictionary() argument 124 public int getFrequency(final String word) { in getFrequency() argument 132 public int getMaxFrequencyOfExactMatches(final String word) { in getMaxFrequencyOfExactMatches() argument 144 protected boolean same(final char[] word, final int length, final String typedWord) { in same() argument 149 if (word[i] != typedWord.charAt(i)) { in same() 212 public boolean isInDictionary(String word) { in isInDictionary() argument
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | OpenWnnEngineJAJP.java | 201 WnnWord word; in getCandidate() local 214 if ((word = mDictionaryJP.getNextWord()) == null) { in getCandidate() 218 if (!mExactMatchMode || mInputHiragana.equals(word.stroke)) { in getCandidate() 219 addCandidate(word); in getCandidate() 273 private boolean addCandidate(WnnWord word) { in addCandidate() argument 274 if (word.candidate == null || mCandTable.containsKey(word.candidate) in addCandidate() 275 || word.candidate.length() > MAX_OUTPUT_LENGTH) { in addCandidate() 278 if (mFilter != null && !mFilter.isAllowed(word)) { in addCandidate() 281 mCandTable.put(word.candidate, word); in addCandidate() 282 mConvResult.add(word); in addCandidate() [all …]
|
D | OpenWnnClauseConverterJAJP.java | 427 WnnWord word; in getAncillaryPattern() local 428 while ((word = dict.getNextWord()) != null) { in getAncillaryPattern() 429 fzks.add(word); in getAncillaryPattern() 439 while ((word = dict.getNextWord()) != null) { in getAncillaryPattern() 443 if (connectible(word.partOfSpeech.right, follow.partOfSpeech.left)) { in getAncillaryPattern() 444 … fzks.add(new WnnWord(key, key, new WnnPOS(word.partOfSpeech.left, follow.partOfSpeech.right))); in getAncillaryPattern() 478 WnnWord word; in getIndependentWords() local 483 while ((word = dict.getNextWord()) != null) { in getIndependentWords() 484 if (input.equals(word.stroke)) { in getIndependentWords() 485 words.add(word); in getIndependentWords() [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
D | ndapi.c | 204 result->word = tmp_word; in get_word_and_search_next_word() 205 tmp_result.word = tmp_word; in get_word_and_search_next_word() 226 tmp_result.word.yomi = cursor->cond.yomi; in get_word_and_search_next_word() 227 tmp_result.word.stem.info1 = cursor->cond.ylen; in get_word_and_search_next_word() 241 … ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &tmp_result.word); in get_word_and_search_next_word() 283 … ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &tmp_result.word); in get_word_and_search_next_word() 291 ((j == max_len) && (loctset->cache_freq > result->word.stem.hindo)) || in get_word_and_search_next_word() 296 result->word = tmp_result.word; in get_word_and_search_next_word() 304 … ret = njd_get_word_data(iwnn, cursor->cond.ds, loctset, (NJ_UINT16)i, &(tmp_result.word)); in get_word_and_search_next_word() 322 result->word = tmp_result.word; in get_word_and_search_next_word() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | OpenWnnDictionaryImpl.java | 848 public int addWordToUserDictionary( WnnWord[] word ) { in addWordToUserDictionary() argument 864 if( count + word.length > MAX_WORDS_IN_USER_DICTIONARY ) { in addWordToUserDictionary() 873 for( int index = 0 ; index < word.length ; index++ ) { in addWordToUserDictionary() 874 … if( word[index].stroke.length() > 0 && word[index].stroke.length() <= MAX_STROKE_LENGTH && in addWordToUserDictionary() 875 … word[index].candidate.length() > 0 && word[index].candidate.length() <= MAX_CANDIDATE_LENGTH ) { in addWordToUserDictionary() 878 DatabaseUtils.appendEscapedSQLString( strokeSQL, word[index].stroke ); in addWordToUserDictionary() 879 … DatabaseUtils.appendEscapedSQLString( candidateSQL, word[index].candidate ); in addWordToUserDictionary() 898 content.put( COLUMN_NAME_STROKE, word[index].stroke ); in addWordToUserDictionary() 899 content.put( COLUMN_NAME_CANDIDATE, word[index].candidate ); in addWordToUserDictionary() 900 content.put( COLUMN_NAME_POS_LEFT, word[index].partOfSpeech.left ); in addWordToUserDictionary() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 175 private static void addUnigramWord(final BinaryDictionary binaryDictionary, final String word, in addUnigramWord() argument 177 binaryDictionary.addUnigramEntry(word, probability, in addUnigramWord() 250 final String word = CodePointUtils.generateWord(random, codePointSet); in testRandomlyAddUnigramWord() local 251 probabilityMap.put(word, random.nextInt(0xFF)); in testRandomlyAddUnigramWord() 253 for (String word : probabilityMap.keySet()) { in testRandomlyAddUnigramWord() 254 addUnigramWord(binaryDictionary, word, probabilityMap.get(word)); in testRandomlyAddUnigramWord() 256 for (String word : probabilityMap.keySet()) { in testRandomlyAddUnigramWord() 257 assertEquals(word, (int)probabilityMap.get(word), binaryDictionary.getFrequency(word)); in testRandomlyAddUnigramWord() 329 final String word = CodePointUtils.generateWord(random, codePointSet); in testRandomlyAddBigramWords() local 330 words.add(word); in testRandomlyAddBigramWords() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | FusionDictionary.java | 168 public void addBigram(final String word, final ProbabilityInfo probabilityInfo) { in addBigram() argument 172 WeightedString bigram = getBigram(word); in addBigram() 176 bigram = new WeightedString(word, probabilityInfo); in addBigram() 185 public WeightedString getBigram(final String word) { in getBigram() argument 191 if (bigram.mWord.equals(word)) { in getBigram() 245 static int[] getCodePoints(final String word) { in getCodePoints() argument 248 final int length = word.length(); in getCodePoints() 250 final char[] characters = word.toCharArray(); in getCodePoints() 274 public void add(final String word, final ProbabilityInfo probabilityInfo, in add() argument 276 add(getCodePoints(word), probabilityInfo, isNotAWord, isPossiblyOffensive); in add() [all …]
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/ |
D | nj_ext.h | 83 …LASS *iwnn, NJ_DIC_SET *dicset, NJ_SEARCH_LOCATION_SET *loctset, NJ_UINT16 dic_idx, NJ_WORD *word); 89 extern NJ_INT16 njd_init_word(NJ_WORD* word); 93 extern NJ_INT16 njd_b_get_word(NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word); 94 extern NJ_INT16 njd_b_get_candidate(NJ_WORD *word, NJ_CHAR *candidate, 96 extern NJ_INT16 njd_b_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, NJ_UINT16 size); 100 extern NJ_INT16 njd_f_get_word(NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word); 101 extern NJ_INT16 njd_f_get_stroke(NJ_WORD *word, NJ_CHAR *stroke, 103 extern NJ_INT16 njd_f_get_candidate(NJ_WORD *word, NJ_CHAR *candidate, 108 extern NJ_INT16 njd_l_add_word(NJ_CLASS *iwnn, NJ_LEARN_WORD_INFO *word, 113 extern NJ_INT16 njd_l_get_word(NJ_CLASS *iwnn, NJ_SEARCH_LOCATION_SET *loctset, NJ_WORD *word); [all …]
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionary.cpp | 264 jintArray word) { in latinime_BinaryDictionary_getProbability() argument 267 const jsize codePointCount = env->GetArrayLength(word); in latinime_BinaryDictionary_getProbability() 269 env->GetIntArrayRegion(word, 0, codePointCount, codePoints); in latinime_BinaryDictionary_getProbability() 274 JNIEnv *env, jclass clazz, jlong dict, jintArray word) { in latinime_BinaryDictionary_getMaxProbabilityOfExactMatches() argument 277 const jsize codePointCount = env->GetArrayLength(word); in latinime_BinaryDictionary_getMaxProbabilityOfExactMatches() 279 env->GetIntArrayRegion(word, 0, codePointCount, codePoints); in latinime_BinaryDictionary_getMaxProbabilityOfExactMatches() 286 jintArray word) { in latinime_BinaryDictionary_getNgramProbability() argument 289 const jsize wordLength = env->GetArrayLength(word); in latinime_BinaryDictionary_getNgramProbability() 291 env->GetIntArrayRegion(word, 0, wordLength, wordCodePoints); in latinime_BinaryDictionary_getNgramProbability() 329 jlong dict, jintArray word, jboolean isBeginningOfSentence, jintArray outCodePoints, in latinime_BinaryDictionary_getWordProperty() argument [all …]
|