elus_use.h

来自「一个信息检索模型」· C头文件 代码 · 共 44 行

H
44
字号
#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 + =
减小字号Ctrl + -
显示快捷键?