2015-08-07 21:17:37 +03:00
|
|
|
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "moses/Parameter.h"
|
2015-10-31 15:50:52 +03:00
|
|
|
#include "OptionsBaseClass.h"
|
|
|
|
|
2015-08-07 21:17:37 +03:00
|
|
|
namespace Moses
|
|
|
|
{
|
|
|
|
|
|
|
|
struct
|
2015-10-31 15:50:52 +03:00
|
|
|
ReportingOptions : public OptionsBaseClass
|
2015-08-07 21:17:37 +03:00
|
|
|
{
|
2015-12-09 20:59:14 +03:00
|
|
|
long start_translation_id;
|
|
|
|
|
2015-11-03 22:36:43 +03:00
|
|
|
std::vector<FactorType> factor_order;
|
2015-12-12 19:23:37 +03:00
|
|
|
std::string factor_delimiter;
|
2015-11-03 22:36:43 +03:00
|
|
|
|
2015-10-31 15:50:52 +03:00
|
|
|
bool ReportAllFactors; // m_reportAllFactors;
|
|
|
|
int ReportSegmentation; // 0: no 1: m_reportSegmentation 2: ..._enriched
|
2015-08-07 21:17:37 +03:00
|
|
|
|
2015-10-31 15:50:52 +03:00
|
|
|
bool PrintAlignmentInfo; // m_PrintAlignmentInfo
|
2015-12-06 04:43:17 +03:00
|
|
|
bool PrintAllDerivations;
|
|
|
|
bool PrintTranslationOptions;
|
|
|
|
|
2015-10-31 15:50:52 +03:00
|
|
|
WordAlignmentSort WA_SortOrder; // 0: no, 1: target order
|
|
|
|
std::string AlignmentOutputFile;
|
2015-12-02 23:43:56 +03:00
|
|
|
|
2015-10-31 15:50:52 +03:00
|
|
|
bool WordGraph;
|
|
|
|
|
|
|
|
std::string SearchGraph;
|
|
|
|
std::string SearchGraphExtended;
|
|
|
|
std::string SearchGraphSLF;
|
|
|
|
std::string SearchGraphHG;
|
|
|
|
std::string SearchGraphPB;
|
|
|
|
bool DontPruneSearchGraph;
|
|
|
|
|
|
|
|
bool RecoverPath; // recover input path?
|
|
|
|
bool ReportHypoScore;
|
2015-08-07 21:17:37 +03:00
|
|
|
|
2015-10-31 15:50:52 +03:00
|
|
|
bool PrintID;
|
|
|
|
bool PrintPassThrough;
|
2015-08-07 21:17:37 +03:00
|
|
|
|
|
|
|
// transrep = translation reporting
|
|
|
|
std::string detailed_transrep_filepath;
|
|
|
|
std::string detailed_tree_transrep_filepath;
|
|
|
|
std::string detailed_all_transrep_filepath;
|
2015-12-10 06:17:36 +03:00
|
|
|
bool include_lhs_in_search_graph;
|
|
|
|
|
2015-10-31 15:50:52 +03:00
|
|
|
|
|
|
|
std::string lattice_sample_filepath;
|
|
|
|
size_t lattice_sample_size;
|
2015-08-07 21:17:37 +03:00
|
|
|
|
|
|
|
bool init(Parameter const& param);
|
2015-10-31 15:50:52 +03:00
|
|
|
|
|
|
|
/// do we need to keep the search graph from decoding?
|
|
|
|
bool NeedSearchGraph() const {
|
|
|
|
return !(SearchGraph.empty() && SearchGraphExtended.empty());
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef HAVE_XMLRPC_C
|
2015-11-04 21:12:49 +03:00
|
|
|
bool update(std::map<std::string, xmlrpc_c::value>const& param);
|
2015-10-31 15:50:52 +03:00
|
|
|
#endif
|
2015-08-07 21:17:37 +03:00
|
|
|
|
2015-12-08 15:28:35 +03:00
|
|
|
|
|
|
|
ReportingOptions();
|
|
|
|
};
|
|
|
|
|
2015-08-07 21:17:37 +03:00
|
|
|
}
|
|
|
|
|