Print all the letters (debug output) in postprocess before pruning them

This commit is contained in:
Matt Hill
2014-02-19 19:38:23 -06:00
parent cc3c4c7861
commit 0aece1a3ac

View File

@@ -181,6 +181,19 @@ void PostProcess::analyze(string templateregion, int topn)
} }
if (this->config->debugPostProcess)
{
// Print all letters
for (int i = 0; i < letters.size(); i++)
{
for (int j = 0; j < letters[i].size(); j++)
cout << "PostProcess Letter: " << letters[i][j].charposition << " " << letters[i][j].letter << " -- score: " << letters[i][j].totalscore << " -- occurences: " << letters[i][j].occurences << endl;
}
}
// Prune the letters based on the topN value. // Prune the letters based on the topN value.
// If our topN value is 3, for example, we can get rid of a lot of low scoring letters // If our topN value is 3, for example, we can get rid of a lot of low scoring letters
// because it would be impossible for them to be a part of our topN results. // because it would be impossible for them to be a part of our topN results.
@@ -281,12 +294,6 @@ void PostProcess::analyze(string templateregion, int topn)
if (this->config->debugPostProcess) if (this->config->debugPostProcess)
{ {
// Print all letters
for (int i = 0; i < letters.size(); i++)
{
for (int j = 0; j < letters[i].size(); j++)
cout << "PostProcess Letter: " << letters[i][j].charposition << " " << letters[i][j].letter << " -- score: " << letters[i][j].totalscore << " -- occurences: " << letters[i][j].occurences << endl;
}
// Print top words // Print top words
for (int i = 0; i < allPossibilities.size(); i++) for (int i = 0; i < allPossibilities.size(); i++)