00001 // -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*- 00002 #pragma once 00003 #include <string> 00004 #include "moses/Parameter.h" 00005 #include <string> 00006 #include "OptionsBaseClass.h" 00007 00008 namespace Moses 00009 { 00010 struct 00011 InputOptions : public OptionsBaseClass 00012 { 00013 bool continue_partial_translation; 00014 InputTypeEnum input_type; 00015 XmlInputType xml_policy; // pass through, ignore, exclusive, inclusive 00016 std::vector<FactorType> factor_order; // input factor order 00017 std::string factor_delimiter; 00018 FactorType placeholder_factor; // where to store original text for placeholders 00019 std::string input_file_path; 00020 std::pair<std::string,std::string> xml_brackets; 00021 // strings to use as XML tags' opening and closing brackets. 00022 // Default are "<" and ">" 00023 00024 InputOptions(); 00025 00026 bool init(Parameter const& param); 00027 bool update(std::map<std::string,xmlrpc_c::value>const& param); 00028 00029 }; 00030 00031 } 00032