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 <hieu@hoang.co.uk>2013-07-18 23:23:44 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-07-18 23:23:44 +0400
commit0b5776faf7919d51e64f9bc8c9973c5e3caa96ad (patch)
tree535598b3951a2794a6531e2c6aff8acf6d56bddd /moses/InputPath.cpp
parent2da41f7a56cd356eac2f20e9f714b7fac6f7bbde (diff)
starting placeholder
Diffstat (limited to 'moses/InputPath.cpp')
-rw-r--r--moses/InputPath.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/moses/InputPath.cpp b/moses/InputPath.cpp
index 9dda42895..9e93219eb 100644
--- a/moses/InputPath.cpp
+++ b/moses/InputPath.cpp
@@ -37,6 +37,13 @@ const void *InputPath::GetPtNode(const PhraseDictionary &phraseDictionary) const
return iter->second.second;
}
+void InputPath::SetTargetPhrases(const PhraseDictionary &phraseDictionary
+ , const TargetPhraseCollection *targetPhrases
+ , const void *ptNode) {
+ std::pair<const TargetPhraseCollection*, const void*> value(targetPhrases, ptNode);
+ m_targetPhrases[&phraseDictionary] = value;
+}
+
std::ostream& operator<<(std::ostream& out, const InputPath& obj)
{
out << &obj << " " << obj.GetWordsRange() << " " << obj.GetPrevNode() << " " << obj.GetPhrase();