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:
-rw-r--r--moses/StaticData.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/moses/StaticData.h b/moses/StaticData.h
index 53b1f97aa..20b8f1506 100644
--- a/moses/StaticData.h
+++ b/moses/StaticData.h
@@ -443,16 +443,21 @@ public:
size_t GetNBestSize() const {
return m_nBestSize;
}
+
const std::string &GetNBestFilePath() const {
return m_nBestFilePath;
}
+
bool IsNBestEnabled() const {
- return (!m_nBestFilePath.empty()) || m_mbr || m_useLatticeMBR || m_mira || m_outputSearchGraph || m_outputSearchGraphSLF || m_outputSearchGraphHypergraph || m_useConsensusDecoding || !m_latticeSamplesFilePath.empty()
+ return (!m_nBestFilePath.empty() || m_mbr || m_useLatticeMBR || m_mira ||
+ m_outputSearchGraph || m_outputSearchGraphSLF ||
+ m_outputSearchGraphHypergraph || m_useConsensusDecoding ||
#ifdef HAVE_PROTOBUF
- || m_outputSearchGraphPB
+ m_outputSearchGraphPB ||
#endif
- ;
+ !m_latticeSamplesFilePath.empty());
}
+
size_t GetLatticeSamplesSize() const {
return m_latticeSamplesSize;
}