亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? lgbase.h

?? 隱馬爾科夫模型工具箱
?? H
字號:
/* ----------------------------------------------------------- *//*                                                             *//*                          ___                                *//*                       |_| | |_/   SPEECH                    *//*                       | | | | \   RECOGNITION               *//*                       =========   SOFTWARE                  */ /*                                                             *//*                                                             *//* ----------------------------------------------------------- *//* developed at:                                               *//*                                                             *//*      Speech Vision and Robotics group                       *//*      Cambridge University Engineering Department            *//*      http://svr-www.eng.cam.ac.uk/                          *//*                                                             *//* main authors: Valtcho Valtchev, Steve Young,                *//*               Julian Odell, Gareth Moore                    *//* ----------------------------------------------------------- *//*         Copyright:                                          *//*                                                             *//*          1994-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: LGBase: Gram File Database Routines           *//* ----------------------------------------------------------- *//* !HVER!lgbase:   3.2 [CUED 09/12/02] */#ifndef _LGBASE_H_#define _LGBASE_H_#ifdef __cplusplusextern "C" {#endif#define SQUASH       3     /* #bytes per word id */#define GSIZE        32    /* max bytes per N-gram */#define MAXNG        7     /* max value of N */#define MAXINF       64    /* max number of open source files */#ifndef LM_TYPES_DEFINEDtypedef unsigned short UShort;typedef unsigned int   UInt;typedef unsigned char  Byte;#define LM_TYPES_DEFINED#endiftypedef UInt *NGram;          /* N-gram: {w1,w2,...,wN count} */typedef struct {        /* NGram size/mapping info information */   int N;                  /* N-gram size N (2..MAXNG)*/   int ng_size;            /* byte size of squashed N-gram records */   int ng_full;            /* byte size of expanded N-gram ie N+1 ints */}NGInfo;typedef struct {        /* open file containing packed ngrams */   Source src;              /* the input stream */   char txtsrc[MAXSTRLEN];  /* text source description */   int nItems;              /* number of n-grams in file */   LabId firstGram[MAXNG];  /* first entry in file */   LabId lastGram[MAXNG];   /* last entry in file */   Byte buf[GSIZE];         /* next compressed N-gram to read */   UInt nxt[MAXNG];         /* next expanded N-gram (no count) */   WordMap *wm;             /* word map to be used with this source */   NGInfo info;             /* ngram size information */}NGSource;typedef struct gramfile *GFLink;typedef struct gramfile{ /* info record for a packed gram file */   char fn[MAXSTRLEN];     /* file name */   LabId firstGram[MAXNG];  /* first entry in file */   LabId lastGram[MAXNG];   /* last entry in file */   float weight;           /* weight for subsequent mixing */   GFLink next;            /* next file to open + ... */   GFLink alt;             /* ... alt files to open */   GFLink chain;           /* linked list of all files */}GramFile;typedef struct {        /* input N-gram file set */   int N;                  /* N-gram size */   WordMap *wm;            /* covering word map */   MemHeap *mem;           /* memory stack for this input set */   int nFiles;             /* num files in input set */   int nOpen;              /* num open files */   int maxNOpen;           /* max number of open files */   GramFile head;          /* dummy head of tree */   NGSource ngs[MAXINF];   /* currently open sources */   GFLink gf[MAXINF];      /* list of ptrs to gram files */   int gfsort[MAXINF];     /* idx's of sorted gram files */   UInt nextGram[MAXNG];   /* next gram to read from inset */     float nextWt;           /* weight of next gram */   Boolean nextValid;      /* true if nextGram is valid */}NGInputSet;typedef struct {        /* N-gram buffer */   NGInfo info;            /* N-gram size and related byte sizes */   int poolsize;           /* number of N-gram slots in pool */   int used;               /* number used slots in pool */   char *fn;               /* basename of output file name */   int fndx;               /* index of next output file */   UInt *pool;             /* array[0..used-1] of ngrams */   UInt *next;             /* next free slot in pool */   WordMap *wm;            /* word map for ngrams */} NGBuffer;typedef struct {        /* N-gram frequency of frequency table */   int size;               /* size of fof table */   int N;                  /* N-gram */   UInt **fof;             /* array[1..N][1..size] of count */} FoFTab;void InitGBase(void);/*    Initialise the module*//* --------------- Basic NGram Operations --------------- */Boolean SameGrams(int N, NGram ng1, NGram ng2);/*   Returns true if grams (ignoring counts) are equal*/void NGramSquash(int N, NGram ng, Byte *comp);void NGramExpand(int N, Byte *comp, NGram ng);/*   Convert between expanded and squashed form of N-gram array.   expd is an array of N N-gram indices.  comp is the same array   with each element squashed to SQUASH (=3) bytes.  Note that   the count is ignored in both cases.*/void PrintNGram(int N, NGram ng, WordMap *wm);/*   Print given N-gram.*//* ------------------- N-Gram File I/O ------------------ */void OpenNGramFile(NGSource *ngs, char *fn, WordMap *wm);/*   Open an N-gram file called fn, check that the gram file is    consistent with wm and initialise NGSource.  .   The first N-gram is input and left in the buffer.  */void CloseNGramFile(NGSource *ngs);/*   Close given N-gram source file*/void ReadNGram(NGSource *ngs, NGram ng);/*    Read the next N-gram from given source into ng.    ngs->eof is set true when end of file was reached   after reading this ngram.*/  int WriteNGram(FILE *f, int N, NGram ng);/*   Write compressed nGram to file f.  Returns the number   of copies written (depends on count)*//* --------------- N-Gram Buffer Operations ---------------- */NGBuffer *CreateNGBuffer(MemHeap *mem, int N, int size, char *fn, WordMap *wm);/*   Create an N-gram buffer with size slots, output file fn and    word map wm.*/void ResetNGBuffer(NGBuffer *ngb);/*   Reset buffer to empty and increment file index*/Boolean StoreNGram(NGBuffer *ngb, NGram ng);/*   Store expanded (N+1 length) N-gram in buf into ngb.   Return TRUE if ngb is full*/   void SortNGBuffer(NGBuffer *ngb);/*   Sort the N-grams in ngb and merge duplicates. */void WriteNGBuffer(NGBuffer *ngb,char *source);/*   Write the contents of ngb to its output file, reset   the buffer to empty and increment file index. The buffer    is sorted before output.  If not null, source is stored   verbatim in the header field Source.*/void PrintNGBuffer(NGBuffer *ngb);/*   Print contents of ngb.*//* ------------- Multiple N-Gram Input File Handling --------- */void CreateInputSet(MemHeap *mem, WordMap *wm, NGInputSet *inset);/*   Create a data structure to hold a set of parallel   partially ordered N-gram files.*/void AddInputGFile(NGInputSet *inset, char *fn, float weight);/*    Add file fn to input set with given weight.*/void OpenInputSet(NGInputSet *inset);/*   Examine all input files and sort such that files which can be   opened and closed sequentially will be ordered as such.  Then   open all files which can possibly supply the first N-gram.*/Boolean GetNextNGram(NGInputSet *inset,NGram ng,float *cnt,int N);/*   This is the primary interface to an input set of gram files.   The open N-gram files in the input set are repeatedly scanned   and Ngrams returned in sequence.   If any file read from is exhausted,    then it is closed and any immediate successor files are opened.     Ngrams are buffered so that identical n-grams from different files   are merged and their counts accumulated.  Furthermore, N can be less   than the stored N-gram size, in this case, the counts are accumulated   across all grams which are equivalent in their first N ndx'es.   The accumulated count is returned in cnt (not in ng since it can be   scaled by an arbitrary floating point weight).  Function returns false   when no more ngrams left.*/void CloseInputSet(NGInputSet *inset);/*   Close any remaining open files in the input set and   free memory used.*//* ------------------- FoF Table Handling -------------- */FoFTab *CreateFoFTab(MemHeap *mem, int size, int N);/*    Create a FoF table with size rows*/void WriteFoFTab(char *fn, FoFTab *tab, char *source);/*   Write given table to fn.  If fn==NULL, write to stdout.   Source is optional header entry.*/FoFTab *ReadFoFTab(MemHeap *mem, char *fn);/*   Create a FoF table holding contents of file fn*//* -------------------- End of LGBase.h ---------------------- */#ifdef __cplusplus}#endif#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一区午夜精品| 七七婷婷婷婷精品国产| 天天色天天操综合| 丁香婷婷综合网| 欧美一级日韩一级| 亚洲欧洲制服丝袜| 国产成人午夜视频| 欧美一级高清片| 亚洲一区二区三区在线播放| 国产成人自拍网| 日韩情涩欧美日韩视频| 亚洲综合999| 色乱码一区二区三区88 | 91久久精品一区二区| 久久久不卡网国产精品二区| 日精品一区二区| 欧美日韩精品一区二区在线播放| 国产精品麻豆视频| 成人午夜碰碰视频| 国产日韩v精品一区二区| 精品在线亚洲视频| 欧美成人乱码一区二区三区| 免费欧美日韩国产三级电影| 欧美精品日韩一区| 丝瓜av网站精品一区二区| 欧美在线观看视频一区二区 | 99久久er热在这里只有精品15| 精品国产不卡一区二区三区| 日韩av网站免费在线| 欧美高清视频www夜色资源网| 午夜伊人狠狠久久| 7777精品伊人久久久大香线蕉完整版 | 99久久伊人网影院| 亚洲日本成人在线观看| 99精品视频免费在线观看| 亚洲免费在线看| 欧美日韩精品欧美日韩精品 | 亚洲综合在线免费观看| 91精品福利在线| 亚洲成人综合视频| 91麻豆精品国产| 久久精品国产亚洲高清剧情介绍| 欧美videos大乳护士334| 精品一区二区在线播放| 国产欧美精品一区二区色综合朱莉| 国产精品自拍毛片| 《视频一区视频二区| 欧美在线不卡一区| 日韩1区2区日韩1区2区| 精品国产一区二区三区久久久蜜月| 免费的成人av| 国产精品素人视频| 欧美日韩免费观看一区三区| 美女尤物国产一区| 国产精品入口麻豆九色| 在线观看日韩精品| 激情综合色丁香一区二区| 中文一区一区三区高中清不卡| 91色porny在线视频| 日韩激情视频网站| 欧美国产激情二区三区| 欧美区在线观看| 国产成人av一区二区三区在线| 亚洲人精品午夜| 日韩精品一区二区在线| 99久久夜色精品国产网站| 免费成人深夜小野草| 欧美高清在线精品一区| 欧美日韩国产大片| 成人黄色片在线观看| 日韩激情中文字幕| 综合久久给合久久狠狠狠97色 | 欧美主播一区二区三区| 国产一区亚洲一区| 亚洲成人av中文| 国产精品麻豆久久久| 欧美高清精品3d| 色综合色狠狠综合色| 国产麻豆视频一区| 亚州成人在线电影| 亚洲人妖av一区二区| 精品国产一区二区三区不卡| 欧美日韩在线观看一区二区 | 亚洲一区二区在线观看视频| 久久九九久精品国产免费直播| 欧美日韩国产123区| 91亚洲国产成人精品一区二区三| 久久精品国产**网站演员| 亚洲国产精品天堂| 亚洲美女屁股眼交| 欧美激情一区二区三区不卡| 精品国产人成亚洲区| 欧美日韩亚洲综合在线| 99精品视频一区二区三区| 成人影视亚洲图片在线| 九色porny丨国产精品| 午夜精品久久久久久久99樱桃| 综合激情成人伊人| 亚洲欧美一区二区视频| 亚洲国产精华液网站w| 精品黑人一区二区三区久久| 91麻豆精品91久久久久同性| 欧美性大战久久久久久久蜜臀| 99久久精品国产网站| 国产成人亚洲综合a∨婷婷图片| 激情偷乱视频一区二区三区| 蜜桃av噜噜一区二区三区小说| 午夜影院久久久| 婷婷丁香激情综合| 午夜电影一区二区| 水野朝阳av一区二区三区| 日韩电影在线一区| 天天操天天色综合| 日韩有码一区二区三区| 日本成人超碰在线观看| 久久精品国产99久久6| 国产真实乱子伦精品视频| 国产又黄又大久久| 成人午夜av电影| 97国产精品videossex| 91美女片黄在线| 欧美在线观看一区| 777久久久精品| 精品国产百合女同互慰| 国产日韩精品一区| 一区二区三区欧美亚洲| 亚洲一区二区不卡免费| 日韩精品久久理论片| 国产尤物一区二区在线| 99国产精品国产精品毛片| 欧美在线啊v一区| 欧美一区二区高清| 久久久午夜电影| 一区二区三区中文字幕在线观看| 亚洲国产日日夜夜| 国内精品不卡在线| 99riav久久精品riav| 欧美日韩午夜影院| 精品裸体舞一区二区三区| 国产精品你懂的在线欣赏| 亚洲香肠在线观看| 激情综合五月婷婷| 日本高清不卡一区| 日韩午夜在线影院| 国产精品入口麻豆原神| 亚洲第一福利一区| 国产裸体歌舞团一区二区| 一本久久a久久精品亚洲| 91精品国产综合久久久蜜臀图片| 国产三级欧美三级日产三级99 | 在线免费视频一区二区| 日韩欧美一区二区在线视频| 国产精品久久久久久久久果冻传媒| 亚洲综合色在线| 丁香五精品蜜臀久久久久99网站| 欧美日韩精品欧美日韩精品一| 亚洲国产精品二十页| 日韩黄色一级片| 色综合网色综合| 久久久五月婷婷| 日韩一区欧美二区| 91猫先生在线| 久久精品亚洲精品国产欧美kt∨| 一区二区三区四区在线免费观看| 另类中文字幕网| 欧美在线999| 成人免费在线观看入口| 极品美女销魂一区二区三区| 欧美日韩在线播放三区| 国产精品久久看| 国产麻豆成人传媒免费观看| 欧美美女直播网站| 亚洲久本草在线中文字幕| 国产精品一区二区果冻传媒| 欧美一区二区三区公司| 亚洲图片有声小说| 色婷婷av一区| 亚洲欧美综合在线精品| 国产一区亚洲一区| 精品国产乱码久久久久久图片| 视频一区免费在线观看| 在线免费av一区| 亚洲精品视频在线观看免费| 成人小视频在线| 国产网红主播福利一区二区| 国产一区欧美日韩| 精品久久久久久最新网址| 青娱乐精品在线视频| 欧美精品在欧美一区二区少妇| 亚洲综合另类小说| 欧美偷拍一区二区| 一区二区久久久| 色综合激情久久| 亚洲男人的天堂网| 一本到一区二区三区| 一区二区三区在线免费| 欧美日韩精品一区视频| 五月天亚洲精品| 日韩午夜小视频| 精品一区二区三区香蕉蜜桃|