Welcome to mirror list, hosted at ThFree Co, Russian Federation.

SyntaxOptions.h « parameters « moses - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e66a24cd1fbca7f8a1096007a5f2d40e38d846e9 (plain)
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
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
#pragma once
#include <string>
#include "moses/Parameter.h"
#include "moses/Word.h"
#include <string>
#include "OptionsBaseClass.h"
#include "moses/FactorCollection.h"

namespace Moses
{
  typedef std::pair<std::string, float> UnknownLHSEntry;
  typedef std::vector<UnknownLHSEntry>  UnknownLHSList;

  struct 
  SyntaxOptions : public OptionsBaseClass
  {
    S2TParsingAlgorithm s2t_parsing_algo;
    Word input_default_non_terminal;
    Word output_default_non_terminal;
    bool default_non_term_only_for_empty_range; // whatever that means
    UnknownLHSList unknown_lhs;
    SourceLabelOverlap source_label_overlap; // m_sourceLabelOverlap;
    size_t rule_limit;

    SyntaxOptions();

    bool init(Parameter const& param);
    bool update(std::map<std::string,xmlrpc_c::value>const& param);
    void LoadNonTerminals(Parameter const& param, FactorCollection& factorCollection);
  };

}