am 70d10976: Merge "Show prediction results in debug build."
* commit '70d10976c6fa8e8b2072b6f08850e57b844300e4': Show prediction results in debug build.main
commit
21016802ce
|
@ -252,6 +252,9 @@ static void latinime_BinaryDictionary_getSuggestions(JNIEnv *env, jclass clazz,
|
||||||
} else {
|
} else {
|
||||||
dictionary->getPredictions(&prevWordsInfo, &suggestionResults);
|
dictionary->getPredictions(&prevWordsInfo, &suggestionResults);
|
||||||
}
|
}
|
||||||
|
if (DEBUG_DICT) {
|
||||||
|
suggestionResults.dumpSuggestions();
|
||||||
|
}
|
||||||
suggestionResults.outputSuggestions(env, outSuggestionCount, outCodePointsArray,
|
suggestionResults.outputSuggestions(env, outSuggestionCount, outCodePointsArray,
|
||||||
outScoresArray, outSpaceIndicesArray, outTypesArray,
|
outScoresArray, outSpaceIndicesArray, outTypesArray,
|
||||||
outAutoCommitFirstWordConfidenceArray, inOutWeightOfLangModelVsSpatialModel);
|
outAutoCommitFirstWordConfidenceArray, inOutWeightOfLangModelVsSpatialModel);
|
||||||
|
|
|
@ -119,7 +119,7 @@ static inline void dumpWordInfo(const int *word, const int length, const int ran
|
||||||
const int probability) {
|
const int probability) {
|
||||||
static char charBuf[50];
|
static char charBuf[50];
|
||||||
const int N = intArrayToCharArray(word, length, charBuf, NELEMS(charBuf));
|
const int N = intArrayToCharArray(word, length, charBuf, NELEMS(charBuf));
|
||||||
if (N > 1) {
|
if (N > 0) {
|
||||||
AKLOGI("%2d [ %s ] (%d)", rank, charBuf, probability);
|
AKLOGI("%2d [ %s ] (%d)", rank, charBuf, probability);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,9 +55,6 @@ void Dictionary::getSuggestions(ProximityInfo *proximityInfo, DicTraverseSession
|
||||||
suggest->getSuggestions(proximityInfo, traverseSession, xcoordinates,
|
suggest->getSuggestions(proximityInfo, traverseSession, xcoordinates,
|
||||||
ycoordinates, times, pointerIds, inputCodePoints, inputSize,
|
ycoordinates, times, pointerIds, inputCodePoints, inputSize,
|
||||||
weightOfLangModelVsSpatialModel, outSuggestionResults);
|
weightOfLangModelVsSpatialModel, outSuggestionResults);
|
||||||
if (DEBUG_DICT) {
|
|
||||||
outSuggestionResults->dumpSuggestions();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Dictionary::NgramListenerForPrediction::NgramListenerForPrediction(
|
Dictionary::NgramListenerForPrediction::NgramListenerForPrediction(
|
||||||
|
|
Loading…
Reference in New Issue