Logo Search packages:      
Sourcecode: apertium version File versions

apertium-filter-ambiguity.C

#include <cstdlib>
#include <cstdio>

#include <apertium/HMM2.H>
#include <apertium/TSXReader.H>

using namespace std;

int main(int argc, char *argv[])
{
  TSXReader reader;
  reader.read(argv[1]);
  
  HMM2 hmm(&(reader.getTaggerData()));
  hmm.filter_ambiguity_classes(stdin, stdout);
  
  return EXIT_SUCCESS;  
}

Generated by  Doxygen 1.6.0   Back to index