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

void HMM::write_ambiguity_classes ( ostream &  os  ) 

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

iosthe output stream

Definition at line 178 of file HMM.C.

References Collection::size().

  set<TTag> ambiguity_class;
  set<TTag>::iterator itag;
  int size;
  //Ambiguity classes
  for(int i=0; i<output.size(); i++) {
    ambiguity_class = output[i];
    size = ambiguity_class.size();
    EndianUtil<int>::write(os, size);
    for (itag=ambiguity_class.begin(); itag!=ambiguity_class.end(); itag++) {
      EndianUtil<TTag>::write(os, *itag);

Generated by  Doxygen 1.6.0   Back to index