Divider
  Speech Technology and Research Laboratory
  People
  Current Research Activities
  Past Research Activities
  Publications
  Career Opportunities
  Seminars
  Technologies for License
  In the News
  Contact Us
  STAR Search
  Information and Computing Sciences Division
SpacerAbout UsDividerR and D DivisionsDividerCareersDividerNewsroomDividerContact UsDividerSRI HomeSpacer

Spacer
         
  SRI Logo

Search SRILM-USER Archives

Match: Format: Sort by:
Search:

Re: lattice-tool

From: Andreas Stolcke <stolcke at ADDRESS HIDDEN>
Date: Fri, 30 Sep 2005 12:05:58 PDT

In message <1128103111.433d7cc79d9a8 at ADDRESS HIDDEN>you wrote:
> Hello,
>
> I have a question concerning lattice-tool... Why, if I convert a htk file to
> pfsg and then back again, are the weights missing in the resulting htk file?

It's either an oversight or a feature, depending on your point of view.
The problem is that HTK lattices encode potentially many kinds of
scores, but PFSGs only one.  So, when outputting a PFSGs as an HTK
lattice is is not clear what to map the PFSG weights to.

However, PFSG weights should probably not just be discarded in this
situation.  A useful default behavior would be to map the PFSG weights to
HTK "acoustic" scores.  The following small change in lattice-tool.cc will
have this effect.

*** /tmp/T0uymDr_ Fri Sep 30 12:01:40 2005
--- lattice-tool.cc Fri Sep 30 11:48:26 2005
***************
*** 613,618 ****
--- 613,623 ----
      // by default we leave HTK lattices scores alone
      HTKScoreMapping htkScoreMapping = mapHTKnone;
  
+     if (!readHTK) {
+ // preserve PFSG weights as HTK acoustic scores
+ htkScoreMapping = mapHTKacoustic;
+     }
+
      if (lmFile) {
  
        // remove pause and NULL nodes prior to LM application,

It will be in the next release unless someone objects.

It is still important to remember that converting HTK lattice to
PFSGs and back will not preserve all information (such as times,
multple scores, pronunciations, etc.).

--Andreas

Click here to go to the SRILM home page.

 

About Us  Vertical divider  R&D Divisions  Divider  Careers  Divider  Newsroom  Divider  Contact Us
©2006 SRI International, 333 Ravenswood Avenue, Menlo Park, CA 94025-3493
SRI International is an independent, nonprofit corporation. Privacy policy

Last modified Dec 02, 2008