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

void HMM::write_ambiguity_classes ( FILE *  out )

It writes the ambiguity classes to the stream received as a parameter

Parameters:
iostheoutput stream

Definition at line 110 of file hmm.cc.

{
  for(int i=0, limit = td->getOutput().size(); i != limit; i++) 
  {
    set<TTag> const &ac = (td->getOutput())[i];
    Compression::multibyte_write(ac.size(), out);
    for(set<TTag>::const_iterator it = ac.begin(), limit2 = ac.end();
        it != limit2; it++)
    {
      Compression::multibyte_write(*it, out);
    }
  } 
}  

Generated by  Doxygen 1.6.0   Back to index