⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hypothesiselement.cpp

📁 解码器是基于短语的统计机器翻译系统的核心模块
💻 CPP
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -