2015-08-05 16:17:58 +03:00
|
|
|
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
|
2015-05-11 02:34:24 +03:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include "moses/Parameter.h"
|
|
|
|
#include "moses/TypeDef.h"
|
|
|
|
#include "moses/Util.h"
|
2015-08-07 21:17:37 +03:00
|
|
|
#include "OptionsBaseClass.h"
|
2015-05-11 02:34:24 +03:00
|
|
|
|
|
|
|
namespace Moses
|
|
|
|
{
|
|
|
|
|
2015-08-07 21:17:37 +03:00
|
|
|
class ContextParameters : public OptionsBaseClass
|
2015-05-11 02:34:24 +03:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
ContextParameters();
|
2015-08-05 04:15:34 +03:00
|
|
|
bool init(Parameter const& params);
|
2015-05-11 02:34:24 +03:00
|
|
|
size_t look_ahead; // # of words to look ahead for context-sensitive decoding
|
|
|
|
size_t look_back; // # of works to look back for context-sensitive decoding
|
|
|
|
std::string context_string; // fixed context string specified on command line
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|