Home
last modified time | relevance | path

Searched refs:NgramProperty (Results 1 – 25 of 27) sorted by relevance

12

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DNgramProperty.java21 public class NgramProperty { class
25 public NgramProperty(final WeightedString targetWord, final NgramContext ngramContext) { in NgramProperty() method in NgramProperty
38 if (!(o instanceof NgramProperty)) return false; in equals()
39 final NgramProperty n = (NgramProperty)o; in equals()
DWordProperty.java40 public final ArrayList<NgramProperty> mNgrams;
62 mNgrams.add(new NgramProperty(bigramTarget, ngramContext)); in WordProperty()
89 final ArrayList<NgramProperty> ngrams = new ArrayList<>(); in WordProperty()
112 ngrams.add(new NgramProperty(ngramTarget, ngramContext)); in WordProperty()
124 for (final NgramProperty ngram : mNgrams) { in getBigrams()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dngram_property.h28 class NgramProperty {
30 NgramProperty(const NgramContext &ngramContext, const std::vector<int> &&targetCodePoints, in NgramProperty() function
53 DISALLOW_DEFAULT_CONSTRUCTOR(NgramProperty);
54 DISALLOW_ASSIGNMENT_OPERATOR(NgramProperty);
Dword_property.h37 const std::vector<NgramProperty> &ngrams) in WordProperty()
49 const std::vector<NgramProperty> &getNgramProperties() const { in getNgramProperties()
59 const std::vector<NgramProperty> mNgrams;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.h39 class NgramProperty; variable
67 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
83 const NgramProperty *const ngramProperty) const;
Dver4_bigram_list_policy.cpp63 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry) { in addNewEntry()
267 const NgramProperty *const ngramProperty) const { in createUpdatedBigramEntryFrom()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpt_node_writer.h28 class NgramProperty; variable
75 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry) = 0;
Ddynamic_pt_updating_helper.h26 class NgramProperty; variable
49 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
Ddynamic_pt_updating_helper.cpp85 const int wordPos, const NgramProperty *const ngramProperty, in addNgramEntry()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java20 import com.android.inputmethod.latin.makedict.NgramProperty;
73 for (final NgramProperty ngramProperty : wordProperty.mNgrams) { in formatWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp347 bool Ver4PatriciaTriePolicy::addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry()
466 const NgramProperty ngramProperty(*ngramContext, wordCodePoints.toVector(), probabilityForNgram, in updateEntriesForWordWithNgramContext()
563 std::vector<NgramProperty> ngrams; in getWordProperty()
Dver4_patricia_trie_node_writer.h97 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
Dver4_patricia_trie_policy.h115 bool addNgramEntry(const NgramProperty *const ngramProperty);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp272 bool Ver4PatriciaTriePolicy::addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry()
514 std::vector<NgramProperty> ngrams; in getWordProperty()
Dver4_patricia_trie_node_writer.h76 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
Dver4_patricia_trie_policy.h94 bool addNgramEntry(const NgramProperty *const ngramProperty);
Dver4_patricia_trie_node_writer.cpp207 const NgramProperty *const ngramProperty, bool *const outAddedNewBigram) { in addNgramEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h83 virtual bool addNgramEntry(const NgramProperty *const ngramProperty) = 0;
/packages/inputmethods/LatinIME/native/dicttoolkit/tests/offdevice_intermediate_dict/
Doffdevice_intermediate_dict_test.cpp40 return WordProperty(std::move(codePoints), UnigramProperty(), std::vector<NgramProperty>()); in getDummpWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.h89 bool addNgramEntry(const NgramProperty *const ngramProperty);
Ddictionary.cpp146 bool Dictionary::addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.h96 bool addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dprobability_entry.h60 ProbabilityEntry(const NgramProperty *const ngramProperty) in ProbabilityEntry()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp37 const std::vector<NgramProperty> &ngrams = wordProperty.getNgramProperties(); in outputWordProperty()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp412 const NgramProperty ngramProperty(ngramContext, in latinime_BinaryDictionary_addNgramEntry()
607 for (const NgramProperty &ngramProperty : wordProperty.getNgramProperties()) { in latinime_BinaryDictionary_migrateNative()

12