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>2014-12-29 03:31:23 +0300
committerHieu Hoang <hieuhoang@gmail.com>2014-12-29 03:31:23 +0300
commit5ac3dddfb6a70aee591c2902238f3ba737dbed3f (patch)
tree381001c10bb5f9dee2a3f74c2dc72ebe3e523bdd /moses/IOWrapper.cpp
parentec3db7bede3c55c157d2176823cb239c1ddedcca (diff)
move OutputBestHyp() to Manager class
Diffstat (limited to 'moses/IOWrapper.cpp')
-rw-r--r--moses/IOWrapper.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/moses/IOWrapper.cpp b/moses/IOWrapper.cpp
index 73882f47e..1840f82ac 100644
--- a/moses/IOWrapper.cpp
+++ b/moses/IOWrapper.cpp
@@ -571,19 +571,6 @@ void IOWrapper::Backtrack(const Hypothesis *hypo)
}
}
-void IOWrapper::OutputBestHypo(const std::vector<Word>& mbrBestHypo, long /*translationId*/, char /*reportSegmentation*/, bool /*reportAllFactors*/, ostream& out)
-{
-
- for (size_t i = 0 ; i < mbrBestHypo.size() ; i++) {
- const Factor *factor = mbrBestHypo[i].GetFactor(StaticData::Instance().GetOutputFactorOrder()[0]);
- UTIL_THROW_IF2(factor == NULL,
- "No factor 0 at position " << i);
- if (i>0) out << " " << *factor;
- else out << *factor;
- }
- out << endl;
-}
-
bool IOWrapper::ReadInput(InputTypeEnum inputType, InputType*& source)
{
delete source;