Revision 67ba05521370625240fc1ee2a18c40c048cf4c1f authored by Ulrich Germann on 10 August 2015, 10:04:45 UTC, committed by Ulrich Germann on 10 August 2015, 10:04:45 UTC
1 parent 0e2dc56
Raw File
PreProcessFilter.h
#pragma once

#include <string>

#if defined(__GLIBCXX__) || defined(__GLIBCPP__)

namespace MosesTuning
{


class ofdstream;
class ifdstream;

/*
 * This class runs the filter command in a child process and
 * then use this filter to process given sentences.
 */
class PreProcessFilter
{
public:
  explicit PreProcessFilter(const std::string& filterCommand);
  std::string ProcessSentence(const std::string& sentence);
  ~PreProcessFilter();

private:
  ofdstream* m_toFilter;
  ifdstream* m_fromFilter;
};

}

#endif
back to top