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

📄 configini.h

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