mosesdecoder/moses/parameters/ContextParameters.h
Ulrich Germann 7da7ce52da Added context buffering in IOWrapper for context-sensitive decoding.
Unfortunately, this seems to slow things down quite a bit.
2015-05-11 00:34:24 +01:00

22 lines
482 B
C++

// -*- c++ -*-
#pragma once
#include <string>
#include "moses/Parameter.h"
#include "moses/TypeDef.h"
#include "moses/Util.h"
namespace Moses
{
class ContextParameters
{
public:
ContextParameters();
void init(Parameter& 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
};
}