HomeSort by relevance Sort by last modified time
    Searched refs:bigrams (Results 1 - 19 of 19) sorted by null

  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
PtNodeInfo.java 37 final ArrayList<PendingAttribute> bigrams) {
45 mBigrams = bigrams;
AbstractDictDecoder.java 46 final TreeMap<Integer, ArrayList<PendingAttribute>> bigrams)
51 BinaryDictIOUtils.readUnigramsAndBigramsBinary(this, words, frequencies, bigrams);
Ver2DictDecoder.java 80 final ArrayList<PendingAttribute> bigrams, final int baseAddress) {
103 throw new RuntimeException("Has bigrams with no address");
105 bigrams.add(new PendingAttribute(
239 final ArrayList<PendingAttribute> bigrams; local
241 bigrams = new ArrayList<>();
242 addressPointer += PtNodeReader.readBigramAddresses(mDictBuffer, bigrams,
244 if (bigrams.size() >= FormatSpec.MAX_BIGRAMS_IN_A_PTNODE) {
245 throw new RuntimeException("Too many bigrams in a PtNode (" + bigrams.size()
249 bigrams = null
    [all...]
BinaryDictDecoderEncoderTests.java 158 final SparseArray<List<Integer>> bigrams) {
159 for (int i = 0; i < bigrams.size(); ++i) {
160 final int w1 = bigrams.keyAt(i);
161 for (int w2 : bigrams.valueAt(i)) {
199 final SparseArray<List<Integer>> bigrams,
210 for (int i = 0; i < bigrams.size(); ++i) {
211 final int w1 = bigrams.keyAt(i);
212 for (final int w2 : bigrams.valueAt(i)) {
243 final SparseArray<List<Integer>> bigrams,
260 checkDictionary(dict, words, bigrams, shortcutMap)
    [all...]
BinaryDictIOUtils.java 90 final Map<Integer, ArrayList<PendingAttribute>> bigrams) {
129 bigrams.put(ptNodeInfo.mOriginalAddress, ptNodeInfo.mBigrams);
148 * Reads unigrams and bigrams from the binary file.
154 * @param bigrams the map to store the address as a key and the list of address as a value.
160 final Map<Integer, ArrayList<PendingAttribute>> bigrams) throws IOException,
165 frequencies, bigrams);
FusionDictionary.java 69 * PtNode is a group of characters, with probability information, shortcut targets, bigrams,
79 * shortcuts and/or bigrams, but a non-terminal may not. Moreover, children, if present,
104 final ArrayList<WeightedString> bigrams, final ProbabilityInfo probabilityInfo,
110 mBigrams = bigrams;
117 final ArrayList<WeightedString> bigrams, final ProbabilityInfo probabilityInfo,
123 mBigrams = bigrams;
217 * Returns null if the word is not in the bigrams list.
240 final ArrayList<WeightedString> bigrams,
260 if (bigrams != null) {
262 mBigrams = bigrams;
    [all...]
Ver2DictEncoder.java 200 * @param bigrams the bigram attributes list.
203 private void writeBigrams(final ArrayList<WeightedString> bigrams,
205 if (bigrams == null) return;
207 final Iterator<WeightedString> bigramIterator = bigrams.iterator();
DictDecoder.java 79 * Reads unigrams and bigrams from the binary file.
84 * @param bigrams the map to store the address as a key and the list of address as a value.
91 final TreeMap<Integer, ArrayList<PendingAttribute>> bigrams)
  /packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/property/
word_property.h 38 const std::vector<BigramProperty> *const bigrams)
39 : mCodePoints(*codePoints), mUnigramProperty(*unigramProperty), mBigrams(*bigrams) {}
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
WordProperty.java 49 final ArrayList<WeightedString> bigrams,
54 mBigrams = bigrams;
58 mHasBigrams = bigrams != null && !bigrams.isEmpty();
  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
Info.java 93 final ArrayList<WeightedString> bigrams = ptNode.getBigrams(); local
94 if (null == bigrams || bigrams.isEmpty()) {
95 System.out.println(" No bigrams");
97 for (final WeightedString bigram : bigrams) {
CombinedInputOutput.java 101 ArrayList<WeightedString> bigrams = new ArrayList<>(); local
110 for (WeightedString s : bigrams) {
115 if (!bigrams.isEmpty()) bigrams = new ArrayList<>();
185 bigrams.add(new WeightedString(secondWordOfBigram, bigramProbabilityInfo));
193 for (WeightedString s : bigrams) {
XmlDictInputOutput.java 284 * @param bigrams the file to read the bigrams from, or null.
288 final BufferedInputStream shortcuts, final BufferedInputStream bigrams)
294 if (null != bigrams) parser.parse(bigrams, bigramHandler);
321 * which has no support for bigrams or shortcuts/whitelist.
332 * The output format is the "second" format, which supports bigrams and shortcuts/whitelist.
DictionaryMaker.java 102 throw new RuntimeException("Separate bigrams/shortcut files are only supported"
103 + " with XML input (other formats include bigrams and shortcuts already)");
131 + "[-s <unigrams.xml> [-b <bigrams.xml>] [-c <shortcuts_and_whitelist.xml>] "
138 + " Source can be an XML file, with an optional XML bigrams file, or a\n"
306 * @param bigramXmlFilename the name of the bigram XML file. Pass null if there are no bigrams.
319 final BufferedInputStream bigrams = getBufferedFileInputStream(bigramXmlFilename);
321 return XmlDictInputOutput.readDictionaryXml(unigrams, shortcuts, bigrams);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java 870 final HashSet<Pair<String, String>> bigrams = new HashSet<>(); local
1004 final HashMap<String, HashSet<String>> bigrams = new HashMap<>(); local
1107 final HashMap<String, HashSet<String>> bigrams = new HashMap<>(); local
1396 final ArrayList<Pair<String, String>> bigrams = new ArrayList<>(); local
    [all...]
BinaryDictionaryDecayingTests.java 245 // Add bigrams of not valid unigrams.
461 final ArrayList<Pair<String, String>> bigrams = new ArrayList<>(); local
476 bigrams.add(bigram);
482 final Pair<String, String> bigram = bigrams.get(random.nextInt(bigrams.size()));
    [all...]
  /packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/
patricia_trie_policy.cpp 229 AKLOGE("Cannot skip bigrams. BufSize: %d, pos: %d.", mDictBufferSize,
253 AKLOGE("Cannot skip bigrams. BufSize: %d, pos: %d.", mDictBufferSize, pos);
286 // Due to space constraints, the probability for bigrams is approximate - the lower the unigram
289 // that sometimes, we'll see some bigrams interverted here, but it can't get too bad.
393 std::vector<BigramProperty> bigrams; local
409 bigrams.emplace_back(&word1, probability,
436 return WordProperty(&codePointVector, &unigramProperty, &bigrams);
  /packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/
ver4_patricia_trie_policy.cpp 449 std::vector<BigramProperty> bigrams; local
480 bigrams.emplace_back(&word1, probability,
506 return WordProperty(&codePointVector, &unigramProperty, &bigrams);
  /packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/
ver4_patricia_trie_policy.cpp 461 std::vector<BigramProperty> bigrams; local
492 bigrams.emplace_back(&word1, probability,
518 return WordProperty(&codePointVector, &unigramProperty, &bigrams);

Completed in 3988 milliseconds