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

void HMM2::write_ambiguity_classes ( FILE *  out  ) 

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

Parameters:
iosthe output stream

Definition at line 91 of file HMM2.C.

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


Generated by  Doxygen 1.6.0   Back to index