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

📄 jp_04.cc

📁 这是一个从音频信号里提取特征参量的程序
💻 CC
字号:
// file: $isip/class/mmedia/JSGFParser/jp_04.cc// version: $Id: jp_04.cc,v 1.5 2002/12/21 01:13:43 alphonso Exp $//// isip include files//#include "JSGFParser.h"//-------------------------------------------------------------------------//// class-specified public methods////-------------------------------------------------------------------------// method: setExpression//// arguments://      1) String& expression_a: a single line of input grammar//      2) long line_a: the number counting input grammar lines//// return: a boolean value indicating status//boolean JSGFParser::setExpression(String& expression_a) {  // concat input expression line to the   //  expression_d.concat(expression_a);  // add new-line character  //  expression_d.concat(L"\n");  // exit gracefully  //  return true;}// method: parseJSGF//// arguments://   const String& graph_start_a: (input) ISIP graph starting symbol//   const String& graph_term_a: (input) ISIP graph terminal symbol//// return: a boolean value indicating status//boolean JSGFParser::parseJSGF(const String& graph_start_a,			      const String& graph_term_a) {    // set up ISIP graph ending symbols  //  graph_start_d.assign(graph_start_a);  graph_term_d.assign(graph_term_a);    // tokenize the JSGF grammar  //  getToken();////////////////debug//////////////////////////////////////////  for (long i = 0; i < token_vect_d.length(); i++) {    JSGFToken t = token_vect_d(i);    //t.printToken();    //Console::put(L"**********************************");  }///////////////debug/////////////////////////////////////      // parse and validate the tokenized JSGF grammar  //  parseGrammar();      // insert each rule definition into the appropriate rule table  //  setRuleTables();  // draw the DiGraph to represent the JSGF grammar  //  drawGraph();  // exit gracefully  //  return true;}

⌨️ 快捷键说明

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