hypothesiselement.cpp

来自「解码器是基于短语的统计机器翻译系统的核心模块」· C++ 代码 · 共 27 行

CPP
27
字号
#include "HypothesisElement.h"

using namespace std;

int HypothesisElement::baseID = 0;

HypothesisElement::HypothesisElement()
{
	baseScore = 0;
	transScore = 0.0;
	distortionScore = 0;
	wordsPenalty = 0;
	lmScore = 0.0;
	futureScore = 0.0;
	totalScore = 0.0;

	lastPos.start = -1;
	lastPos.end = -1;

//	lenNow = 0;
	thisID = 0;
	lastID = 0;
	prev = -1;

	oldphrase.insert(-1);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?