📄 hypothesiselement.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -