• 大小: 9.52MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-04
  • 语言: C/C++
  • 标签: hmm,  训练  ,识别  

资源简介

经过编译,可以直接用,能实现hmm模型的训练,以及识别功能。

资源截图

代码片段和文件信息

/************************************************************************
 *                                                                      *
 *  Program packages ‘myHMM‘ :                                          *
 *                                                                      *
 *  myHMM.c                                                             *
 *   -the main program for myHMM hidden Markov model(myHMM隐马尔可夫模 *
 *     型的主程序 )                                                    *
 *  Version 0.1                                                         *
 *  Date: 3 May 2003                                                    *
 *                                                                      *
 *  NOTE: This program package is copyrighted in the sense that it      *
 *  may be used for scientific purposes. The package as a whole or     *
 *  parts thereof cannot be included or used in any commercial         *
 *  application without written permission granted by its producents.   *
 *  No programs contained in this package may be copied for commercial  *
 *  distribution.                                                       *
 *                                                                      *
 *  All comments concerning this program package may be sent to the     *
 *  e-mail address ‘dcslgl@nus.edu.sg‘.                                 *
 *                                                                      *
 ************************************************************************/

/*************************************************************************
NAME
     myHMM - train the hidden Markov model(训练hmm模型)

SYNOPSIS
     myHMM -hmm [HMM] [-train trainFile] [-trainedHmm trainedHmmFile]
     [-test testFile] [-tested testedFile] [-mode mode]

DEscriptION

     Input:
       required: pre-defined hidden Markov model
       optional: training data testing data

     Output:
       optional: trained hidden Markov model tested result

     Global variables:全局变量
       N: integer number of states  状态数
       M: integer number of observations 观察值序列的长度
       T: integer the length of the longest input sequence最长的输入序列的长度?
       S: integer finite set of possible states可能状态的有限集合
       O: integer finite set of possible observations 观测值集合
       t: double transition matrix: N x N状态转移矩阵
       e: integer emission matrix: N x M 输出观测值概率集合
       pi: integer initial state distribution: 1 x N 初始状态分配

       %% A hidden Markov model (HMM) is a five-tuple (SOtepi).
       %% Let lambda = {tepi} denote the parameters for a given HMM
       %% with fixed S and O.

       %% There are three basic problems in HMM:
       %% 1) probability of the observation sequence given the HMM model
       %%   -> forward algorithm & backward algorithm
       %% 2) the most probable state path of the observation sequence
       %%   given the HMM model
       %%   -> Vi

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-05-07 16:22  myHMMsource\
     目录           0  2013-05-07 13:31  myHMMsource\Debug\
     文件       14064  2013-05-06 21:12  myHMMsource\Debug\02.txt
     文件       16257  2013-05-06 20:34  myHMMsource\Debug\2b.txt
     文件          37  2013-05-07 15:17  myHMMsource\Debug\TESTED_FILE.txt
     文件          11  2013-05-07 15:17  myHMMsource\Debug\TESTING.txt
     文件        2553  2013-05-07 13:23  myHMMsource\Debug\default.trainedHmm
     文件        2553  2013-05-07 13:14  myHMMsource\Debug\default.trainedHmm.bak
     文件      237636  2013-05-07 12:43  myHMMsource\Debug\myHMM.exe
     文件      290836  2013-05-07 12:43  myHMMsource\Debug\myHMM.ilk
     文件       49917  2013-05-07 12:43  myHMMsource\Debug\myHMM.obj
     文件      214068  2013-05-06 21:27  myHMMsource\Debug\myHMM.pch
     文件      533504  2013-05-07 12:43  myHMMsource\Debug\myHMM.pdb
     文件         522  2013-05-02 17:42  myHMMsource\Debug\s13.hmm
     文件          62  2004-02-26 15:20  myHMMsource\Debug\train.dat
     文件        2553  2013-05-07 15:17  myHMMsource\Debug\trainedhmmfile.txt
     文件       33792  2013-05-07 14:59  myHMMsource\Debug\vc60.idb
     文件       53248  2013-05-07 12:43  myHMMsource\Debug\vc60.pdb
     目录           0  2013-05-06 21:14  myHMMsource\Debug\测试文件mfcc男声\
     文件       14064  2013-05-06 21:12  myHMMsource\Debug\测试文件mfcc男声\02.txt
     文件       13900  2013-05-06 21:12  myHMMsource\Debug\测试文件mfcc男声\03.txt
     文件       11730  2013-05-06 21:13  myHMMsource\Debug\测试文件mfcc男声\07.txt
     文件       12932  2013-05-06 21:13  myHMMsource\Debug\测试文件mfcc男声\08.txt
     目录           0  2013-05-06 20:41  myHMMsource\Debug\训练文件mfcc(男声)\
     文件       16665  2013-05-06 20:32  myHMMsource\Debug\训练文件mfcc(男声)\0a.txt
     文件       16344  2013-05-06 20:33  myHMMsource\Debug\训练文件mfcc(男声)\0b.txt
     文件       16264  2013-05-06 20:39  myHMMsource\Debug\训练文件mfcc(男声)\1a.txt
     文件       16487  2013-05-06 20:33  myHMMsource\Debug\训练文件mfcc(男声)\1b.txt
     文件       16214  2013-05-06 20:39  myHMMsource\Debug\训练文件mfcc(男声)\2a.txt
     文件       16257  2013-05-06 20:34  myHMMsource\Debug\训练文件mfcc(男声)\2b.txt
     文件       16287  2013-05-06 20:39  myHMMsource\Debug\训练文件mfcc(男声)\3a.txt
............此处省略201个文件信息

评论

共有 条评论