#ifndef _ALIGNER_H_ #include #include #include #include "array2d.h" #include "lattice.h" class Hypergraph; struct AlignerTools { static boost::shared_ptr > ReadPharaohAlignmentGrid(const std::string& al); static void SerializePharaohFormat(const Array2D& alignment, std::ostream* out); // assumption: g contains derivations of input/ref and // ONLY input/ref. static void WriteAlignment(const std::string& input, const Lattice& ref, const Hypergraph& g, bool map_instead_of_viterbi = true); }; #endif