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-05 20:59:53 +0300
committerHieu Hoang <hieuhoang@gmail.com>2014-12-05 20:59:53 +0300
commit23ca29a2ea13bfa12210f4f278785aefdd45a672 (patch)
tree7a10fd28d59c5c22e9848bd44f6d1ad09e9d7a31 /moses/Incremental.cpp
parent0d8e20980eed5f6fcefe89584dc5995e39b091a2 (diff)
add Decode to API framework
Diffstat (limited to 'moses/Incremental.cpp')
-rw-r--r--moses/Incremental.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/moses/Incremental.cpp b/moses/Incremental.cpp
index bb20d0640..91663d7de 100644
--- a/moses/Incremental.cpp
+++ b/moses/Incremental.cpp
@@ -273,9 +273,13 @@ template void Manager::LMCallback<lm::ngram::QuantTrieModel>(const lm::ngram::Qu
template void Manager::LMCallback<lm::ngram::ArrayTrieModel>(const lm::ngram::ArrayTrieModel &model, const std::vector<lm::WordIndex> &words);
template void Manager::LMCallback<lm::ngram::QuantArrayTrieModel>(const lm::ngram::QuantArrayTrieModel &model, const std::vector<lm::WordIndex> &words);
-const std::vector<search::Applied> &Manager::ProcessSentence()
+void Manager::Decode()
{
LanguageModel::GetFirstLM().IncrementalCallback(*this);
+}
+
+const std::vector<search::Applied> &Manager::GetNBest() const
+{
return *completed_nbest_;
}