Logo Search packages:      
Sourcecode: apertium version File versions  Download package

void HMM::print_evaluation (  ) 

Prints the evaluation results.

Definition at line 979 of file HMM.C.

References data_tagger_eval::nambiguous, data_tagger_eval::nerrors_amb, data_tagger_eval::nerrors_noamb, data_tagger_eval::nerrors_unk, data_tagger_eval::nignored, data_tagger_eval::nunknown, and data_tagger_eval::nwords.

                      {
  cout<<"# of words.......................................... "<<
    eval_data.nwords<<"\n"
      <<"# of unknown words.................................. "<<
    eval_data.nunknown<<"\n" 
      <<"# of ignored words.................................. "<<
    eval_data.nignored<<"\n"
      <<"# of ambiguous words................................ "<<
    eval_data.nambiguous<<"\n"
      <<"# of errors NOT due to ambiguous words.............. "<<
    eval_data.nerrors_noamb<<"\n"
      <<"# of errors due to ambiguous words.................. "<<
    eval_data.nerrors_amb<<"\n"
      <<"# of errors due to unknown words.................... "<<
    eval_data.nerrors_unk<<"\n"
      <<"% of unknown words.................................. "<<
    (eval_data.nunknown/eval_data.nwords)*100.0<<" %\n"
      <<"% of ambiguous words................................ "<<
    (eval_data.nambiguous/eval_data.nwords)*100.0<<" %\n"
      <<"% of unknown and ambiguous words.................... "<<
    ((eval_data.nambiguous+eval_data.nunknown)/eval_data.nwords)*100.0<<" %\n"
      <<"% of error over ambiguous words .................... "<<
    (eval_data.nerrors_amb/eval_data.nambiguous)*100.0<<" %\n"
      <<"% of error over ambiguous and unknown words......... "<<
    ((eval_data.nerrors_amb+eval_data.nerrors_unk)/(eval_data.nambiguous+eval_data.nunknown))*100.0<<" %\n";
}


Generated by  Doxygen 1.6.0   Back to index