Copies the best_choice strings to the correct_text for adaption/training.
| 915 | |
| 916 | // Copies the best_choice strings to the correct_text for adaption/training. |
| 917 | void WERD_RES::BestChoiceToCorrectText() { |
| 918 | correct_text.clear(); |
| 919 | ASSERT_HOST(best_choice != NULL); |
| 920 | for (int i = 0; i < best_choice->length(); ++i) { |
| 921 | UNICHAR_ID choice_id = best_choice->unichar_id(i); |
| 922 | const char* blob_choice = uch_set->id_to_unichar(choice_id); |
| 923 | correct_text.push_back(STRING(blob_choice)); |
| 924 | } |
| 925 | } |
| 926 | |
| 927 | // Merges 2 adjacent blobs in the result if the permanent callback |
| 928 | // class_cb returns other than INVALID_UNICHAR_ID, AND the permanent |
no test coverage detected