📄 ngrm_01.cc
字号:
// file: $isip/class/stat/NGramModel/ngrm_01.cc// version: $Id: ngrm_01.cc,v 1.2 2002/06/27 16:36:58 zheng Exp $//// isip include files//#include "NGramModel.h"#include "Console.h"// method: debug//// arguments:// const unichar* msg: (input) message to print//// return: a boolean value indicating status//boolean NGramModel::debug(const unichar* msg_a) const { // declare local variables // String value; String output; String empty_str; // output the information message // output.debugStr(name(), msg_a, L":"); Console::put(output); // increase the indentation // Console::increaseIndention(); // display the ngram order // value.assign(order_d); output.debugStr(name(), empty_str, L"order_d", value); Console::put(output); // display the hash table // output.debugStr(name(), msg_a, L"gram_hash_d = "); Console::put(output); gram_hash_d.debug(L"gram hashtable"); // decrease indention // Console::decreaseIndention(); // exit gracefully // return true;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -