Welcome to mirror list, hosted at ThFree Co, Russian Federation.

StsgRuleWriter.h « extract-ghkm « phrase-extract - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: efba44d2ca2dbdfe98d1cc30e5355c9105435a13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#ifndef EXTRACT_GHKM_STSG_RULE_WRITER_H_
#define EXTRACT_GHKM_STSG_RULE_WRITER_H_

#include "Subgraph.h"

#include <ostream>

namespace Moses
{
namespace GHKM
{

struct Options;
class StsgRule;
class Symbol;

class StsgRuleWriter
{
public:
  StsgRuleWriter(std::ostream &fwd, std::ostream &inv, const Options &options)
    : m_fwd(fwd)
    , m_inv(inv)
    , m_options(options) {}

  void Write(const StsgRule &rule);

private:
  // Disallow copying
  StsgRuleWriter(const StsgRuleWriter &);
  StsgRuleWriter &operator=(const StsgRuleWriter &);

  std::ostream &m_fwd;
  std::ostream &m_inv;
  const Options &m_options;
};

}  // namespace GHKM
}  // namespace Moses

#endif