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:
Diffstat (limited to 'contrib/moses2/FF/LexicalReordering/HReorderingForwardState.h')
-rw-r--r--contrib/moses2/FF/LexicalReordering/HReorderingForwardState.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/contrib/moses2/FF/LexicalReordering/HReorderingForwardState.h b/contrib/moses2/FF/LexicalReordering/HReorderingForwardState.h
new file mode 100644
index 000000000..8f9b8bd23
--- /dev/null
+++ b/contrib/moses2/FF/LexicalReordering/HReorderingForwardState.h
@@ -0,0 +1,41 @@
+/*
+ * HReorderingForwardState.h
+ *
+ * Created on: 22 Mar 2016
+ * Author: hieu
+ */
+#pragma once
+#include "LRState.h"
+
+namespace Moses2
+{
+class Range;
+class Bitmap;
+class InputPathBase;
+
+class HReorderingForwardState: public LRState
+{
+public:
+ HReorderingForwardState(const LRModel &config, size_t offset);
+ virtual ~HReorderingForwardState();
+
+ void Init(const LRState *prev, const TargetPhrase<Moses2::Word> &topt,
+ const InputPathBase &path, bool first, const Bitmap *coverage);
+
+ size_t hash() const;
+ virtual bool operator==(const FFState& other) const;
+ virtual std::string ToString() const;
+ void Expand(const ManagerBase &mgr, const LexicalReordering &ff,
+ const Hypothesis &hypo, size_t phraseTableInd, Scores &scores,
+ FFState &state) const;
+
+protected:
+ bool m_first;
+ //const Range &m_prevRange;
+ const InputPathBase *prevPath;
+ const Bitmap *m_coverage;
+
+};
+
+} /* namespace Moses2 */
+