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

void HMM::print_B (  ) 

Prints the B matrix.

Definition at line 827 of file hmm.cc.

             {
  int i,k;  

  cout<<"EMISSION MATRIX (B)\n-------------------------------\n";
  for(i=0; i != td->getN(); i++)
    for(k=0; k != td->getM(); k++) {
      Collection &output = td->getOutput();
      if(output[k].find(i)!=output[k].end())
        cout<<"B["<<i<<"]["<<k<<"] = "<<(td->getB())[i][k]<<"\n";
    }
}


Generated by  Doxygen 1.6.0   Back to index