mosesdecoder/moses/parameters/InputOptions.h

33 lines
893 B
C
Raw Permalink Normal View History

2015-08-05 04:15:34 +03:00
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
#pragma once
#include <string>
#include "moses/Parameter.h"
#include <string>
#include "OptionsBaseClass.h"
2015-08-05 04:15:34 +03:00
namespace Moses
{
struct
InputOptions : public OptionsBaseClass
2015-08-05 04:15:34 +03:00
{
bool continue_partial_translation;
InputTypeEnum input_type;
XmlInputType xml_policy; // pass through, ignore, exclusive, inclusive
2015-11-03 22:36:43 +03:00
std::vector<FactorType> factor_order; // input factor order
2015-12-12 19:23:37 +03:00
std::string factor_delimiter;
FactorType placeholder_factor; // where to store original text for placeholders
std::string input_file_path;
2015-08-05 04:15:34 +03:00
std::pair<std::string,std::string> xml_brackets;
// strings to use as XML tags' opening and closing brackets.
// Default are "<" and ">"
InputOptions();
bool init(Parameter const& param);
bool update(std::map<std::string,xmlrpc_c::value>const& param);
2015-08-05 04:15:34 +03:00
};
}