[Subject Prev][Subject Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hts-users:02640] Fwd: Bug in HModel.c:GetRegTree()


Hi,

I've reported a bug in HTK to HTK developers ML. This bug also exists in HTS.

Best regards,

Heiga


-------- Original Message --------
Subject: Bug in HModel.c:GetRegTree()
Date: Mon, 06 Dec 2010 10:18:15 +0000
From: Heiga ZEN (Byung Ha CHUN) <heiga.zen@xxxxxxxxxxxxxxxxx>
Organisation: Toshiba Research Europe Ltd. Cambridge Research Lab.
To: eng-htk-developers@xxxxxxxxxxxxxxx

Hi,

I found a bug in HTK-3.4.1 HModel.c:GetRegTree().  rtree->numNodes &
rtree->numTNodes are not initialised but incremented.  Here is a patch code.

--- HModel.c  2009-03-12 18:46:34.000000000 +0000
+++ HModel.c  2010-12-05 07:02:29.979797000 +0000
@@ -1365,12 +1365,13 @@
        sw = rtree->bclass->swidth[1];
        for (i=2;i<=rtree->bclass->swidth[0];i++)
         if (rtree->bclass->swidth[i] != sw)
           rtree->valid = FALSE;
      }
      rtree->root = root = CreateRegNode(hset->hmem,1);
+     rtree->numNodes = rtree->numTNodes = 0;
      while ((tok->sym != EOFSYM) &&
            ((tok->sym==NODE) || (tok->sym==TNODE))) {
        switch(tok->sym) {
        case NODE:
         if (!ReadInt(src,&index,1,tok->binForm)){
           HMError(src,"Node index for regression tree expected");

Best regards,

Heiga ZEN (Byung Ha CHUN)

======================================================================
NOTE: The information in this email and any attachments may be confidential
and/or legally privileged. This message may be read, copied and used only by
the intended recipient. If you are not the intended recipient, please
destroy this message, delete any copies held on your system and notify the
sender immediately.

Toshiba Research Europe Limited, registered in England and Wales (2519556).
Registered Office: 208 Cambridge Science Park, Milton Road, Cambridge
CB4 0GZ, England. Web: http://www.toshiba-europe.com/research/crl
======================================================================

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email ______________________________________________________________________