File size: 1,671 Bytes
fd49381
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
#pragma once
#include <string>
#include "moses/Parameter.h"
#include "OptionsBaseClass.h"

namespace Moses
{

  struct 
  ReportingOptions : public OptionsBaseClass
  {
    long start_translation_id;

    std::vector<FactorType> factor_order;
    std::string factor_delimiter;
    
    bool ReportAllFactors; // m_reportAllFactors;
    int ReportSegmentation; // 0: no 1: m_reportSegmentation 2: ..._enriched 

    bool PrintAlignmentInfo; // m_PrintAlignmentInfo
    bool PrintAllDerivations;
    bool PrintTranslationOptions; 

    WordAlignmentSort WA_SortOrder; // 0: no, 1: target order
    std::string AlignmentOutputFile; 
    
    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;

    bool PrintID;
    bool PrintPassThrough;

    // transrep = translation reporting
    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);

    /// do we need to keep the search graph from decoding?
    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();
  };
  
}