mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 05:14:36 +03:00
7da7ce52da
Unfortunately, this seems to slow things down quite a bit.
22 lines
482 B
C++
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
|
|
};
|
|
|
|
}
|