diff --git a/wordrec/lm_state.h b/wordrec/lm_state.h index c87745b75a..623bbb5e7f 100644 --- a/wordrec/lm_state.h +++ b/wordrec/lm_state.h @@ -177,11 +177,11 @@ struct ViterbiStateEntry : public ELIST_LINK { /// the smallest rating or lower/upper case letters). LanguageModelFlagsType top_choice_flags; - /// Extra information maintained by Dawg laguage model component + /// Extra information maintained by Dawg language model component /// (owned by ViterbiStateEntry). LanguageModelDawgInfo *dawg_info; - /// Extra information maintained by Ngram laguage model component + /// Extra information maintained by Ngram language model component /// (owned by ViterbiStateEntry). LanguageModelNgramInfo *ngram_info; diff --git a/wordrec/pieces.cpp b/wordrec/pieces.cpp index 1818478c66..04e340396e 100644 --- a/wordrec/pieces.cpp +++ b/wordrec/pieces.cpp @@ -273,7 +273,7 @@ void Wordrec::merge_and_put_fragment_lists(inT16 row, inT16 column, * * Recursively go through the ratings matrix to find lists of fragments * to be merged in the function merge_and_put_fragment_lists. - * current_frag is the postion of the piece we are looking for. + * current_frag is the position of the piece we are looking for. * current_row is the row in the rating matrix we are currently at. * start is the row we started initially, so that we can know where * to append the results to the matrix. num_frag_parts is the total diff --git a/wordrec/wordrec.h b/wordrec/wordrec.h index 38f09f23d2..fb54ccae08 100644 --- a/wordrec/wordrec.h +++ b/wordrec/wordrec.h @@ -375,7 +375,7 @@ class Wordrec : public Classify { inT16 num_blobs); // Recursively go through the ratings matrix to find lists of fragments // to be merged in the function merge_and_put_fragment_lists. - // current_frag is the postion of the piece we are looking for. + // current_frag is the position of the piece we are looking for. // current_row is the row in the rating matrix we are currently at. // start is the row we started initially, so that we can know where // to append the results to the matrix. num_frag_parts is the total