Logo Search packages:      
Sourcecode: lttoolbox version File versions

void FSTProcessor::classifyFinals (  )  [private]

Calculate all the results of the word being parsed

Definition at line 346 of file FSTProcessor.C.

References inconditional, postblank, standard, and transducers.

{
  for(map<string, TransExe, Ltstr>::iterator it = transducers.begin(),
                                             limit = transducers.end();
      it != limit; it++)
  {
    if(endsWith(it->first, "@inconditional"))
    {
      inconditional.insert(it->second.getFinals().begin(),
                           it->second.getFinals().end());
    }
    else if(endsWith(it->first, "@standard"))
    {
      standard.insert(it->second.getFinals().begin(),
                      it->second.getFinals().end());
    }
    else if(endsWith(it->first, "@postblank"))
    {
      postblank.insert(it->second.getFinals().begin(),
                       it->second.getFinals().end());
    }
    else
    {
      cerr << "Error: Unsupported transducer type for '";
      cerr << it->first << "'." << endl;
      exit(EXIT_FAILURE);
    }
  }
}


Generated by  Doxygen 1.6.0   Back to index