?? nshortpath.h
字號:
//////////////////////////////////////////////////////////////////////
//ICTCLAS簡介:計算所漢語詞法分析系統(tǒng)ICTCLAS(Institute of Computing Technology, Chinese Lexical Analysis System),
// 功能有:中文分詞;詞性標(biāo)注;未登錄詞識別。
// 分詞正確率高達97.58%(973專家評測結(jié)果),
// 未登錄詞識別召回率均高于90%,其中中國人名的識別召回率接近98%;
// 處理速度為31.5Kbytes/s。
//著作權(quán): Copyright?2002-2005中科院計算所 職務(wù)著作權(quán)人:張華平 劉群
//遵循協(xié)議:自然語言處理開放資源許可證1.0
//Email: zhanghp@software.ict.ac.cn
//Homepage:www.nlp.org.cn;mtgroup.ict.ac.cn
/****************************************************************************
*
* Copyright (c) 2000, 2001
* Software Research Lab.
* Institute of Computing Tech.
* Chinese Academy of Sciences
* All rights reserved.
*
* This file is the confidential and proprietary property of
* Institute of Computing Tech. and the posession or use of this file requires
* a written license from the author.
*
* Abstract:
* N-Shortest Path Problem for graph in word segement
*
* Author: Kevin Chang (zhanghp@software.ict.ac.cn)
*
* Notes:
*
****************************************************************************/
// NShortPath.h: interface for the CNShortPath class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_NSHORTPATH_H__817D57F2_F3D8_40C8_A57E_20570862BCB3__INCLUDED_)
#define AFX_NSHORTPATH_H__817D57F2_F3D8_40C8_A57E_20570862BCB3__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DynamicArray.h"
#include "queue.h"
#include <stdio.h>
class CNShortPath
{
public:
int m_nResultCount;
int Output(int **nResult,bool bBest,int *npCount);
int ShortPath();
CNShortPath(CDynamicArray *aCost,unsigned int nValueKind=1);
virtual ~CNShortPath();
private:
void GetPaths(unsigned int nNode,unsigned int nIndex,int **nResult=0,bool bBest=false);
CDynamicArray *m_apCost;
unsigned int m_nValueKind;//The number of value kinds
unsigned int m_nVertex;//The number of vertex in the graph
CQueue **m_pParent;//The 2-dimension array for the nodes
ELEMENT_TYPE **m_pWeight;//The weight of node
};
#endif // !defined(AFX_NSHORTPATH_H__817D57F2_F3D8_40C8_A57E_20570862BCB3__INCLUDED_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -