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

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Williams <philip.williams@mac.com>2014-11-21 14:30:29 +0300
committerPhil Williams <philip.williams@mac.com>2014-11-21 14:30:29 +0300
commitc46fb10ec75f5a78fdda09888c7d674d5c869240 (patch)
treebf2c8910d29af27b906d1458f5e7f974bdc9776d /phrase-extract/extract-ghkm/StsgRuleWriter.h
parent7aa4d5d8d523e02fd387aed5fca34177672122ae (diff)
extract-ghkm: add --STSG option
Diffstat (limited to 'phrase-extract/extract-ghkm/StsgRuleWriter.h')
-rw-r--r--phrase-extract/extract-ghkm/StsgRuleWriter.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/phrase-extract/extract-ghkm/StsgRuleWriter.h b/phrase-extract/extract-ghkm/StsgRuleWriter.h
new file mode 100644
index 000000000..efba44d2c
--- /dev/null
+++ b/phrase-extract/extract-ghkm/StsgRuleWriter.h
@@ -0,0 +1,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