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

📄 lmstats.h

📁 这是一款很好用的工具包
💻 H
字号:
/* * LMStats.h -- *	Generic LM statistics interface * * Copyright (c) 1995, SRI International.  All Rights Reserved. * * @(#)$Header: /home/srilm/devel/lm/src/RCS/LMStats.h,v 1.7 1997/07/18 02:27:37 stolcke Exp $ * */#ifndef _LMStats_h_#define _LMStats_h_#include <stdio.h>#include "Boolean.h"#include "Vocab.h"#include "Debug.h"#include "LM.h"class LMStats: public Debug{public:    LMStats(Vocab &vocab);    virtual ~LMStats();    virtual unsigned int countSentence(const VocabString *words) = 0;    virtual unsigned int countSentence(const VocabIndex *words) = 0;    virtual unsigned int countString(char *sentence);    virtual unsigned int countFile(File &file);    virtual Boolean read(File &file) = 0;    virtual void write(File &file) = 0;    virtual void memStats(MemStats &stats) = 0;					/* compute memory stats */    Vocab &vocab;			/* vocabulary */    Boolean openVocab;			/* whether to add words as needed */    TextStats stats;			/* training data stats */};#endif /* _LMStats_h_ */

⌨️ 快捷键说明

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