|
|
|
#pragma once |
|
#include <string> |
|
#include <vector> |
|
#include "OptionsBaseClass.h" |
|
#include "../TypeDef.h" |
|
|
|
namespace Moses2 |
|
{ |
|
|
|
struct |
|
ReportingOptions : public OptionsBaseClass { |
|
long start_translation_id; |
|
|
|
std::vector<FactorType> factor_order; |
|
std::string factor_delimiter; |
|
|
|
bool ReportAllFactors; |
|
int ReportSegmentation; |
|
|
|
bool PrintAlignmentInfo; |
|
bool PrintAllDerivations; |
|
bool PrintTranslationOptions; |
|
|
|
WordAlignmentSort WA_SortOrder; |
|
std::string AlignmentOutputFile; |
|
|
|
bool WordGraph; |
|
|
|
std::string SearchGraph; |
|
std::string SearchGraphExtended; |
|
std::string SearchGraphSLF; |
|
std::string SearchGraphHG; |
|
std::string SearchGraphPB; |
|
bool DontPruneSearchGraph; |
|
|
|
bool RecoverPath; |
|
bool ReportHypoScore; |
|
|
|
bool PrintID; |
|
bool PrintPassThrough; |
|
|
|
|
|
std::string detailed_transrep_filepath; |
|
std::string detailed_tree_transrep_filepath; |
|
std::string detailed_all_transrep_filepath; |
|
bool include_lhs_in_search_graph; |
|
|
|
|
|
std::string lattice_sample_filepath; |
|
size_t lattice_sample_size; |
|
|
|
bool init(Parameter const& param); |
|
|
|
|
|
bool NeedSearchGraph() const { |
|
return !(SearchGraph.empty() && SearchGraphExtended.empty()); |
|
} |
|
|
|
#ifdef HAVE_XMLRPC_C |
|
bool update(std::map<std::string, xmlrpc_c::value>const& param); |
|
#endif |
|
|
|
|
|
ReportingOptions(); |
|
}; |
|
|
|
} |
|
|
|
|