configini.h
来自「解码器是基于短语的统计机器翻译系统的核心模块」· C头文件 代码 · 共 42 行
H
42 行
#ifndef CONFIGINI_H
#define CONFIGINI_H
#include <string>
#include <fstream>
#include <iostream>
#include <cmath>
using namespace std;
class Para
{
public:
string en_vcb;
string cn_vcb;
string ttable_file;
string lmodel_file;
int ttable_limit;//20
int phrase_limit;//7
double weight_d;//0.2
double weight_l;//0.5
double weight_ef;//0.2
double weight_lexef;//0.2
double weight_fe;//0.2
double weight_lexfe;//0.2
double penalty;//0.2 phrase-table中的第5项
double word_penalty;//-1
};
class ConfigINI
{
public:
ConfigINI();
void load(string fileName, Para& parameter);
private:
ifstream iniFile;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?