Fixing misspelled word
Change-Id: I51d77e271143d40256b39e5c60a3065d9fdf63fb
This commit is contained in:
parent
bc18005948
commit
44efbe64b1
4 changed files with 5 additions and 5 deletions
|
@ -310,7 +310,7 @@ bool Ver4PatriciaTrieNodeWriter::addShortcutTarget(const PtNodeParams *const ptN
|
||||||
const int shortcutProbability) {
|
const int shortcutProbability) {
|
||||||
if (!mShortcutPolicy->addNewShortcut(ptNodeParams->getTerminalId(),
|
if (!mShortcutPolicy->addNewShortcut(ptNodeParams->getTerminalId(),
|
||||||
targetCodePoints, targetCodePointCount, shortcutProbability)) {
|
targetCodePoints, targetCodePointCount, shortcutProbability)) {
|
||||||
AKLOGE("Cannot add new shortuct entry. terminalId: %d", ptNodeParams->getTerminalId());
|
AKLOGE("Cannot add new shortcut entry. terminalId: %d", ptNodeParams->getTerminalId());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!ptNodeParams->hasShortcutTargets()) {
|
if (!ptNodeParams->hasShortcutTargets()) {
|
||||||
|
|
|
@ -37,7 +37,7 @@ const PtNodeParams Ver2ParticiaTrieNodeReader::fetchPtNodeParamsInBufferFromPtNo
|
||||||
int shortcutPos = NOT_A_DICT_POS;
|
int shortcutPos = NOT_A_DICT_POS;
|
||||||
int bigramPos = NOT_A_DICT_POS;
|
int bigramPos = NOT_A_DICT_POS;
|
||||||
int siblingPos = NOT_A_DICT_POS;
|
int siblingPos = NOT_A_DICT_POS;
|
||||||
PatriciaTrieReadingUtils::readPtNodeInfo(mBuffer.data(), ptNodePos, mShortuctPolicy,
|
PatriciaTrieReadingUtils::readPtNodeInfo(mBuffer.data(), ptNodePos, mShortcutPolicy,
|
||||||
mBigramPolicy, mCodePointTable, &flags, &mergedNodeCodePointCount, mergedNodeCodePoints,
|
mBigramPolicy, mCodePointTable, &flags, &mergedNodeCodePointCount, mergedNodeCodePoints,
|
||||||
&probability, &childrenPos, &shortcutPos, &bigramPos, &siblingPos);
|
&probability, &childrenPos, &shortcutPos, &bigramPos, &siblingPos);
|
||||||
if (mergedNodeCodePointCount <= 0) {
|
if (mergedNodeCodePointCount <= 0) {
|
||||||
|
|
|
@ -35,7 +35,7 @@ class Ver2ParticiaTrieNodeReader : public PtNodeReader {
|
||||||
const DictionaryBigramsStructurePolicy *const bigramPolicy,
|
const DictionaryBigramsStructurePolicy *const bigramPolicy,
|
||||||
const DictionaryShortcutsStructurePolicy *const shortcutPolicy,
|
const DictionaryShortcutsStructurePolicy *const shortcutPolicy,
|
||||||
const int *const codePointTable)
|
const int *const codePointTable)
|
||||||
: mBuffer(buffer), mBigramPolicy(bigramPolicy), mShortuctPolicy(shortcutPolicy),
|
: mBuffer(buffer), mBigramPolicy(bigramPolicy), mShortcutPolicy(shortcutPolicy),
|
||||||
mCodePointTable(codePointTable) {}
|
mCodePointTable(codePointTable) {}
|
||||||
|
|
||||||
virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const;
|
virtual const PtNodeParams fetchPtNodeParamsInBufferFromPtNodePos(const int ptNodePos) const;
|
||||||
|
@ -45,7 +45,7 @@ class Ver2ParticiaTrieNodeReader : public PtNodeReader {
|
||||||
|
|
||||||
const ReadOnlyByteArrayView mBuffer;
|
const ReadOnlyByteArrayView mBuffer;
|
||||||
const DictionaryBigramsStructurePolicy *const mBigramPolicy;
|
const DictionaryBigramsStructurePolicy *const mBigramPolicy;
|
||||||
const DictionaryShortcutsStructurePolicy *const mShortuctPolicy;
|
const DictionaryShortcutsStructurePolicy *const mShortcutPolicy;
|
||||||
const int *const mCodePointTable;
|
const int *const mCodePointTable;
|
||||||
};
|
};
|
||||||
} // namespace latinime
|
} // namespace latinime
|
||||||
|
|
|
@ -285,7 +285,7 @@ bool Ver4PatriciaTrieNodeWriter::addShortcutTarget(const PtNodeParams *const ptN
|
||||||
const int shortcutProbability) {
|
const int shortcutProbability) {
|
||||||
if (!mShortcutPolicy->addNewShortcut(ptNodeParams->getTerminalId(),
|
if (!mShortcutPolicy->addNewShortcut(ptNodeParams->getTerminalId(),
|
||||||
targetCodePoints, targetCodePointCount, shortcutProbability)) {
|
targetCodePoints, targetCodePointCount, shortcutProbability)) {
|
||||||
AKLOGE("Cannot add new shortuct entry. terminalId: %d", ptNodeParams->getTerminalId());
|
AKLOGE("Cannot add new shortcut entry. terminalId: %d", ptNodeParams->getTerminalId());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue