mosesdecoder/mert/PreProcessFilter.h

33 lines
519 B
C
Raw Normal View History

2013-11-14 22:59:36 +04:00
#pragma once
#include <string>
2013-11-14 23:15:53 +04:00
#if defined(__GLIBCXX__) || defined(__GLIBCPP__)
namespace MosesTuning
{
2013-05-29 21:16:15 +04:00
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:
2013-05-29 21:16:15 +04:00
ofdstream* m_toFilter;
ifdstream* m_fromFilter;
};
}
2013-11-14 22:59:36 +04:00
#endif