2015-08-05 16:17:58 +03:00
|
|
|
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
|
2015-08-05 04:15:34 +03:00
|
|
|
#pragma once
|
2015-05-27 22:45:55 +03:00
|
|
|
#include <string>
|
2015-08-07 21:17:37 +03:00
|
|
|
#include "OptionsBaseClass.h"
|
2015-06-04 15:41:46 +03:00
|
|
|
namespace Moses
|
|
|
|
{
|
2015-05-27 22:45:55 +03:00
|
|
|
|
2015-08-07 21:17:37 +03:00
|
|
|
struct NBestOptions : public OptionsBaseClass
|
2015-08-05 04:15:34 +03:00
|
|
|
{
|
2015-06-04 15:41:46 +03:00
|
|
|
size_t nbest_size;
|
|
|
|
size_t factor;
|
|
|
|
bool enabled;
|
|
|
|
bool print_trees;
|
|
|
|
bool only_distinct;
|
2015-05-27 22:45:55 +03:00
|
|
|
|
2015-06-04 15:41:46 +03:00
|
|
|
bool include_alignment_info;
|
|
|
|
bool include_segmentation;
|
|
|
|
bool include_feature_labels;
|
|
|
|
bool include_passthrough;
|
2015-05-27 22:45:55 +03:00
|
|
|
|
2015-06-04 15:41:46 +03:00
|
|
|
bool include_all_factors;
|
2015-05-27 22:45:55 +03:00
|
|
|
|
2015-06-04 15:41:46 +03:00
|
|
|
std::string output_file_path;
|
2015-06-02 12:02:39 +03:00
|
|
|
|
2015-06-04 15:41:46 +03:00
|
|
|
bool init(Parameter const& param);
|
2015-05-27 22:45:55 +03:00
|
|
|
|
2015-10-31 15:50:52 +03:00
|
|
|
bool update(std::map<std::string,xmlrpc_c::value>const& param);
|
2015-12-08 15:28:35 +03:00
|
|
|
|
|
|
|
NBestOptions();
|
2015-06-04 15:41:46 +03:00
|
|
|
};
|
2015-05-27 22:45:55 +03:00
|
|
|
|
|
|
|
}
|