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:
authorUlrich Germann <ugermann@inf.ed.ac.uk>2015-05-12 01:13:13 +0300
committerUlrich Germann <ugermann@inf.ed.ac.uk>2015-05-12 01:13:13 +0300
commitf087fce65eae426fa38efdea55405753992f10f7 (patch)
tree4e8ff855b242e8063790d75661fb0f2722fa2d70 /moses/StaticData.h
parent25ec936adf6dd2d9ab5ceeda3b5da356d8206a5d (diff)
Reformatting.
Diffstat (limited to 'moses/StaticData.h')
-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;
}