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

📄 reflist.h

📁 这是一款很好用的工具包
💻 H
字号:
/* * RefList.h -- *	Lists of words strings identified by string ids * * Copyright (c) 1998-2003 SRI International.  All Rights Reserved. * * @(#)$Header: /home/srilm/devel/lm/src/RCS/RefList.h,v 1.5 2006/01/05 20:21:27 stolcke Exp $ * */#ifndef _RefList_h_#define _RefList_h_#include <iostream>using namespace std;#include "Boolean.h"#include "File.h"#include "Vocab.h"#include "LHash.h"#include "Array.h"typedef const char *RefString;RefString idFromFilename(const char *filename);class RefList {public:    RefList(Vocab &vocab, Boolean haveIDs = true);    ~RefList();    Boolean read(File &file, Boolean addWords = false);    Boolean write(File &file);    VocabIndex *findRef(RefString id);    VocabIndex *findRefByNumber(unsigned id);private:    Vocab &vocab;    Boolean haveIDs;				// whether refs have string IDs    Array<VocabIndex *> refarray;		// by number    LHash<RefString, VocabIndex *> reflist;	// by ID};#endif /* _RefList_h_ */

⌨️ 快捷键说明

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