/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 158 final SparseArray<List<Integer>> bigrams) { in addBigrams() argument 159 for (int i = 0; i < bigrams.size(); ++i) { in addBigrams() 160 final int w1 = bigrams.keyAt(i); in addBigrams() 161 for (int w2 : bigrams.valueAt(i)) { in addBigrams() 199 final SparseArray<List<Integer>> bigrams, in checkDictionary() argument 210 for (int i = 0; i < bigrams.size(); ++i) { in checkDictionary() 211 final int w1 = bigrams.keyAt(i); in checkDictionary() 212 for (final int w2 : bigrams.valueAt(i)) { in checkDictionary() 243 final SparseArray<List<Integer>> bigrams, in timeReadingAndCheckDict() argument 260 checkDictionary(dict, words, bigrams, shortcutMap); in timeReadingAndCheckDict() [all …]
|
D | Ver2DictDecoder.java | 80 final ArrayList<PendingAttribute> bigrams, final int baseAddress) { in readBigramAddresses() argument 105 bigrams.add(new PendingAttribute( in readBigramAddresses() 239 final ArrayList<PendingAttribute> bigrams; in readPtNode() local 241 bigrams = new ArrayList<>(); in readPtNode() 242 addressPointer += PtNodeReader.readBigramAddresses(mDictBuffer, bigrams, in readPtNode() 244 if (bigrams.size() >= FormatSpec.MAX_BIGRAMS_IN_A_PTNODE) { in readPtNode() 245 throw new RuntimeException("Too many bigrams in a PtNode (" + bigrams.size() in readPtNode() 249 bigrams = null; in readPtNode() 252 childrenAddress, shortcutTargets, bigrams); in readPtNode()
|
D | FusionDictionary.java | 104 final ArrayList<WeightedString> bigrams, final ProbabilityInfo probabilityInfo, in PtNode() argument 110 mBigrams = bigrams; in PtNode() 117 final ArrayList<WeightedString> bigrams, final ProbabilityInfo probabilityInfo, in PtNode() argument 123 mBigrams = bigrams; in PtNode() 240 final ArrayList<WeightedString> bigrams, in update() argument 260 if (bigrams != null) { in update() 262 mBigrams = bigrams; in update() 264 final int size = bigrams.size(); in update() 266 final WeightedString bigram = bigrams.get(i); in update()
|
D | BinaryDictIOUtils.java | 90 final Map<Integer, ArrayList<PendingAttribute>> bigrams) { in readUnigramsAndBigramsBinaryInner() argument 129 bigrams.put(ptNodeInfo.mOriginalAddress, ptNodeInfo.mBigrams); in readUnigramsAndBigramsBinaryInner() 160 final Map<Integer, ArrayList<PendingAttribute>> bigrams) throws IOException, in readUnigramsAndBigramsBinary() argument 165 frequencies, bigrams); in readUnigramsAndBigramsBinary()
|
D | Ver2DictEncoder.java | 203 private void writeBigrams(final ArrayList<WeightedString> bigrams, in writeBigrams() argument 205 if (bigrams == null) return; in writeBigrams() 207 final Iterator<WeightedString> bigramIterator = bigrams.iterator(); in writeBigrams()
|
D | PtNodeInfo.java | 37 final ArrayList<PendingAttribute> bigrams) { in PtNodeInfo() argument 45 mBigrams = bigrams; in PtNodeInfo()
|
D | AbstractDictDecoder.java | 46 final TreeMap<Integer, ArrayList<PendingAttribute>> bigrams) in readUnigramsAndBigramsBinary() argument 51 BinaryDictIOUtils.readUnigramsAndBigramsBinary(this, words, frequencies, bigrams); in readUnigramsAndBigramsBinary()
|
D | DictDecoder.java | 91 final TreeMap<Integer, ArrayList<PendingAttribute>> bigrams) in readUnigramsAndBigramsBinary() argument
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 870 final HashSet<Pair<String, String>> bigrams = new HashSet<>(); in testUnigramAndBigramCount() local 890 bigrams.add(new Pair<>(word0, word1)); in testUnigramAndBigramCount() 896 assertEquals(new HashSet<>(bigrams).size(), Integer.parseInt( in testUnigramAndBigramCount() 901 assertEquals(new HashSet<>(bigrams).size(), Integer.parseInt( in testUnigramAndBigramCount() 1004 final HashMap<String, HashSet<String>> bigrams = new HashMap<>(); in testGetWordProperties() local 1049 if (!bigrams.containsKey(word0)) { in testGetWordProperties() 1051 bigrams.put(word0, bigramWord1s); in testGetWordProperties() 1053 bigrams.get(word0).add(word1); in testGetWordProperties() 1059 if (!bigrams.containsKey(word0)) { in testGetWordProperties() 1062 final HashSet<String> bigramWord1s = bigrams.get(word0); in testGetWordProperties() [all …]
|
D | BinaryDictionaryDecayingTests.java | 461 final ArrayList<Pair<String, String>> bigrams = new ArrayList<>(); in testAddManyBigramsToDecayingDict() local 476 bigrams.add(bigram); in testAddManyBigramsToDecayingDict() 482 final Pair<String, String> bigram = bigrams.get(random.nextInt(bigrams.size())); in testAddManyBigramsToDecayingDict()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | CombinedInputOutput.java | 101 ArrayList<WeightedString> bigrams = new ArrayList<>(); in readDictionaryCombined() local 110 for (WeightedString s : bigrams) { in readDictionaryCombined() 115 if (!bigrams.isEmpty()) bigrams = new ArrayList<>(); in readDictionaryCombined() 185 bigrams.add(new WeightedString(secondWordOfBigram, bigramProbabilityInfo)); in readDictionaryCombined() 193 for (WeightedString s : bigrams) { in readDictionaryCombined()
|
D | Info.java | 93 final ArrayList<WeightedString> bigrams = ptNode.getBigrams(); in showWordInfo() local 94 if (null == bigrams || bigrams.isEmpty()) { in showWordInfo() 97 for (final WeightedString bigram : bigrams) { in showWordInfo()
|
D | XmlDictInputOutput.java | 288 final BufferedInputStream shortcuts, final BufferedInputStream bigrams) in readDictionaryXml() argument 294 if (null != bigrams) parser.parse(bigrams, bigramHandler); in readDictionaryXml()
|
D | DictionaryMaker.java | 319 final BufferedInputStream bigrams = getBufferedFileInputStream(bigramXmlFilename); in readXmlFile() 321 return XmlDictInputOutput.readDictionaryXml(unigrams, shortcuts, bigrams); in readXmlFile()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | WordProperty.java | 49 final ArrayList<WeightedString> bigrams, in WordProperty() argument 54 mBigrams = bigrams; in WordProperty() 58 mHasBigrams = bigrams != null && !bigrams.isEmpty(); in WordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 393 std::vector<BigramProperty> bigrams; in getWordProperty() local 409 bigrams.emplace_back(&word1, probability, in getWordProperty() 436 return WordProperty(&codePointVector, &unigramProperty, &bigrams); in getWordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 449 std::vector<BigramProperty> bigrams; in getWordProperty() local 480 bigrams.emplace_back(&word1, probability, in getWordProperty() 506 return WordProperty(&codePointVector, &unigramProperty, &bigrams); in getWordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 461 std::vector<BigramProperty> bigrams; in getWordProperty() local 492 bigrams.emplace_back(&word1, probability, in getWordProperty() 518 return WordProperty(&codePointVector, &unigramProperty, &bigrams); in getWordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/property/ |
D | word_property.h | 38 const std::vector<BigramProperty> *const bigrams) in WordProperty() argument 39 : mCodePoints(*codePoints), mUnigramProperty(*unigramProperty), mBigrams(*bigrams) {} in WordProperty()
|