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:
authorHieu Hoang <hieuhoang@gmail.com>2020-10-01 20:03:32 +0300
committerHieu Hoang <hieuhoang@gmail.com>2020-10-01 20:03:32 +0300
commit1adc2f9f94ca433095ca6d75a57acb2235a0a03f (patch)
treebd6ef6af141a2a1823bccaca2aa1a1ecdb3b74f9 /moses2/TranslationModel
parente971f23eee8fc950ec56a3a4df0e68f281ceb8b7 (diff)
InitializeForInput()
Diffstat (limited to 'moses2/TranslationModel')
-rw-r--r--moses2/TranslationModel/MSPT/MSPT.cpp5
-rw-r--r--moses2/TranslationModel/MSPT/MSPT.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/moses2/TranslationModel/MSPT/MSPT.cpp b/moses2/TranslationModel/MSPT/MSPT.cpp
index c905d5240..04a900812 100644
--- a/moses2/TranslationModel/MSPT/MSPT.cpp
+++ b/moses2/TranslationModel/MSPT/MSPT.cpp
@@ -150,6 +150,11 @@ void MSPT::Load(System &system)
*/
}
+void MSPT::InitializeForInput(const InputType &input)
+{
+ cerr << "InitializeForInput" << endl;
+}
+
TargetPhrases* MSPT::Lookup(const Manager &mgr, MemPool &pool,
InputPath &inputPath) const
{
diff --git a/moses2/TranslationModel/MSPT/MSPT.h b/moses2/TranslationModel/MSPT/MSPT.h
index d3946d353..a7fd6e2da 100644
--- a/moses2/TranslationModel/MSPT/MSPT.h
+++ b/moses2/TranslationModel/MSPT/MSPT.h
@@ -66,6 +66,8 @@ public:
const SCFG::Stacks &stacks,
SCFG::InputPath &path) const;
+ virtual void InitializeForInput(const InputType &input);
+
protected:
PBNODE *m_rootPb;
SCFGNODE *m_rootSCFG;