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

📄 elus_use.h

📁 一个信息检索模型
💻 H
字号:
#ifndef __ELUS_USE_H__
#define __ELUS_USE_H__

#ifdef INSUNDLL
#undef INSUNDLL
#endif
#ifdef _USRDLL
#define INSUN_DLL __declspec(dllexport)
#else
#define INSUN_DLL
#endif


extern "C"
{	
	////***************** ELUS Object API ******************
	typedef long HObject;	//每一个对象相当于一个库
	//typedef void * PELUSObject;
	INSUN_DLL HObject NewELUSObject(const char * ALibRootPath);
	INSUN_DLL bool DeleteELUSObject(HObject APointer);
	INSUN_DLL void FreeAllELUSObject();

	////***************** ELUS Word API ******************
	////***************** ELUS Word Segmentation Module ******************

	//对于wstring类型
	INSUN_DLL const wchar_t * FMMSeg( const wchar_t * AInSentence,  HObject APointer);
	INSUN_DLL const wchar_t * BMMSeg( const wchar_t * AInSentence,  HObject APointer);
	INSUN_DLL const wchar_t * ViterbiSeg( const wchar_t * AInSentence, HObject APointer);
	
	// 设置分词 分割符 默认为 双空格
	INSUN_DLL void Option_SetSegTag(const wchar_t * ANewSegTag , HObject APointer);
	// 设置是否进行 Factoid识别 默认为 true
	INSUN_DLL void Option_SetFactoidDetectFlag(const bool AFactoidDetectFlag , HObject APointer );
	INSUN_DLL void  Option_SetMorphologyDetectFlag(const bool AMorphologyDetectFlag , HObject APointer);
	INSUN_DLL void  Option_SetAttachTagType(const bool AAttachTagType , HObject APointer );



	//******************** POS Tagging API ***********************
	INSUN_DLL const wchar_t * HMMPos(const wchar_t * AInSentence , bool ATriModeFlag , HObject APointer );

};
#endif

⌨️ 快捷键说明

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