📄 hlat.h
字号:
/* ----------------------------------------------------------- *//* *//* ___ *//* |_| | |_/ SPEECH *//* | | | | \ RECOGNITION *//* ========= SOFTWARE */ /* *//* *//* ----------------------------------------------------------- *//* developed at: *//* *//* Speech Vision and Robotics group *//* Cambridge University Engineering Department *//* http://svr-www.eng.cam.ac.uk/ *//* *//* ----------------------------------------------------------- *//* Copyright: *//* 2001-2002 Cambridge University *//* Engineering Department *//* *//* Use of this software is governed by a License Agreement *//* ** See the file License for the Conditions of Use ** *//* ** This banner notice must not be removed ** *//* *//* ----------------------------------------------------------- *//* File: HLat.h: Lattice Manipulation *//* ----------------------------------------------------------- *//* !HVER!HLat: 3.2 [CUED 09/12/02] */#ifndef _HLAT_H_#define _HLAT_H_#ifdef __cplusplusextern "C" {#endif/* ------------------------ Initialisation --------------------------- */void InitLat (void);/* register module & set configuration parameters*//* ------------------------ Datatype ----------------------------- *//* Forward-Backward info structre attached to LNodes use doubles for imporved accuracy*/typedef struct FBlnodeInfo { LogDouble fwlike; /* forward likelihood */ LogDouble bwlike; /* backward likelihood */} FBinfo;#define LNodeFw(ln) (((FBinfo *) (ln)->hook)->fwlike)#define LNodeBw(ln) (((FBinfo *) (ln)->hook)->bwlike)typedef enum {LATFB_SUM, LATFB_MAX} LatFBType;/* ------------------------ Prototypes --------------------------- */Transcription *LatFindBest (MemHeap *heap, Lattice *lat, int N);Lattice *LatPrune (MemHeap *heap, Lattice *lat, LogDouble thresh, float arcsPerSec);void CalcStats (Lattice *lat);LNode *LatStartNode (Lattice *lat);LNode *LatEndNode (Lattice *lat);void LatSetBoundaryWords (char *start, char *end, char *startLM, char *endLM);void LatCheck (Lattice *lat);void FixBadLat (Lattice *lat);void FixPronProbs (Lattice *lat, Vocab *voc);Boolean LatTopSort (Lattice *lat, LNode **topOrder);void LatAttachInfo (MemHeap *heap, size_t size, Lattice *lat);void LatDetachInfo (MemHeap *heap, Lattice *lat);LogDouble LatForwBackw (Lattice *lat, LatFBType type);#ifndef NO_LAT_LMLattice *LatExpand (MemHeap *heap, Lattice *lat, LModel *lm);#endif#ifdef __cplusplus}#endif#endif /* _HLAT_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -