mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-28 14:32:38 +03:00
23 lines
587 B
C++
23 lines
587 B
C++
// -*- mode: c++; indent-tabs-mode: nil; tab-width: 2 -*-
|
|
#pragma once
|
|
#include <string>
|
|
#include "moses/Parameter.h"
|
|
#include "moses/TypeDef.h"
|
|
#include "moses/Util.h"
|
|
#include "OptionsBaseClass.h"
|
|
|
|
namespace Moses
|
|
{
|
|
|
|
class ContextParameters : public OptionsBaseClass
|
|
{
|
|
public:
|
|
ContextParameters();
|
|
bool init(Parameter const& params);
|
|
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
|
|
};
|
|
|
|
}
|