[hts-users:02407] Re: Any easy way of getting an adapted model set?
- Subject: [hts-users:02407] Re: Any easy way of getting an adapted model set?
- From: Hui LIANG <tshlmail-hts@xxxxxxxxx>
- Date: Thu, 18 Feb 2010 06:48:48 -0800 (PST)
- Delivered-to: hts-users@xxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1266504528; bh=/D1PZu/pRSbhOGoHbwz96imAQAOyinT7omeOId+dzho=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Q7xcehr5puQqjzHmNRpRoGX4UezdDyndh3ZN0wQ+ZlerzP/YHJxuk8sEg7UI8TPK6Evj8wSbu9DFY48ACxlz49SNmZqHfdj13Eq6dmRj3mhx88Cplg3XmcBRGvXHwvI0JIuLK3P+M1MyUQvpTTlVPhJlaUFovyEH3WQkdxZu11o=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=kqs/jDaKCBsIhqgWCUAgaX/zDEVPpiGoZloaXNzSzT5PoqhgbvX6R0YfNGfqhyoKgLg4NL05Ox/Sg7nONfydMP36srQEFGe8VrsHSvzJ5D9b0LHdxNAv3s1dFS7mShwMtsyITdlIXM2f1810Rodnc3hBoh5ugYSJDaFge+Rg9Ic=;
Hello, Dr. Zen,
Your patch worked -- I obtained a non-diagonal covariance model set.
By the way, I suppose the patch needs to be further improved. Currently, in any of the three following cases, an adapted model set will be generated by the AX command of HHEd:
Case 1:
HTK Configuration Parameters[26]
Module/Tool Parameter Value
# HADAPT SAVEFULLC TRUE
HADAPT SAVESPKRMODELS TRUE
.... (other 24 parameters)
Case 2:
HTK Configuration Parameters[26]
Module/Tool Parameter Value
# HADAPT SAVEFULLC FALSE
HADAPT SAVESPKRMODELS TRUE
.... (other 24 parameters)
Case 3:
HTK Configuration Parameters[26]
Module/Tool Parameter Value
# HADAPT SAVEFULLC FALSE
HADAPT SAVESPKRMODELS FALSE
.... (other 24 parameters)
This may be a problem especially when someone is going to generate an "adapted" HTS engine by both AX and CM commands. He may not want an adapted model set.
Thanks a lot for your kind help.
Hui LIANG
--- On Thu, 18/2/10, Heiga ZEN (Byung Ha CHUN) <heiga.zen@xxxxxxxxxxxxxxxxx> wrote:
Please apply the following modification to HHEd.c, re-compile this, and try it again:
--- HHEd.c 2010-02-04 10:35:05.906117000 +0000
+++ HHEd.c 2010-02-18 13:49:19.237243000 +0000
@@ -8115,24 +8115,26 @@
void AdaptXFormCommand()
{
char fn[MAXFNAMELEN], macroname[MAXSTRLEN];
AdaptXForm *xf;
ChkedAlpha("AX adapt Xform file name", fn);
if (trace & T_BID) {
printf("\nAX %s\n Setting HMMSet adapt XForm\n", fn);
fflush(stdout);
}
xf = LoadOneXForm(hset,NameOf(fn,macroname),fn);
SetXForm(hset, NULL, xf);
+
+ ApplyHMMSetXForm(hset, hset->curXForm, TRUE);
}
/* ----------------- ReOrderFeatures Command -------------------- */
void ReOrderFeaturesCommand()
{
int i,j,vSize,nr,nc;
char *mac="varFloor1"; /* single stream assumed */
MLink m;
LabId id;
Vector tmpm,tmpv,mean,var;
Matrix tmpxf,xform;
- Follow-Ups
-
- [hts-users:02408] Re: Any easy way of getting an adapted model set?, Heiga ZEN (Byung Ha CHUN)