hypothesiselement.h

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

H
35
字号
#ifndef HYPOTHESISELEMENT_H
#define HYPOTHESISELEMENT_H

#include "TransOptions.h"
#include <set>

using namespace std;

class HypothesisElement
{
public:
	HypothesisElement();
public:

	double baseScore;//到本假设时,以前的 score
	double transScore;//新扩展的几个词的
	double distortionScore; //需要根据上次被扩展的外文短语的位置信息来计算
	double wordsPenalty;//对新增加的词给予的惩罚
	double lmScore;//新扩展的英文短语的lm prob;需要已有的英文短语信息
	double futureScore;
	double totalScore;
	fPosition lastPos;//the end of the last foreign phrase covered
	vector<int> newPhrase; //新假设中的英文词id
	int lastEWI;
	int lastEWII;
	static int baseID;
	int thisID;//本假设的ID号
	int lastID;//来源假设的ID
	set<int> oldphrase;  //已扩展的外文词序号
	int prev; //源自哪个假设
};


#endif

⌨️ 快捷键说明

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