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: decode lattice

From: john at ADDRESS HIDDEN
Date: 5 Mar 2004 11:53:30 -0000

Andreas,

I changed our lattice files so that the words were not enclosed in double quotes. This fixed the initial problem and enabled me to get an output from lattice-tool. However, I then realised that I needed to scale the output from my classifier by subtracting the log prior probabilities for each class before building the lattice. Now, when I try the rescaling and decoding using lattice-tool it predicts the same (low frequency) label for almost every token.

Am I wrong to scale my 'accoustic' probabilities before building the lattice? Does lattice-tool do this for me when I call:

./lattice-tool -read-htk -in-lattice lattice.slf -write-htk \ -out-lattice lattice.out -lm DAgrammar -no-nulls

Hope you can shed some light on this.

Regards,

John Ferguson

  > > Dear Andreas,
> >
> > I am replying on behalf of my colleague who emailed you earlier
> regarding
> > correct use of the SRILM lattice-tool.
> >
> > Based on your previous advice I have tried to decode our
> lattice using our
> > bigram model. All files seem to be in the correct format, so
> far as I can
> > tell. However, when lattice-tool rescores the lattice, all the
> newly added
> > LM probabilities "l=..." come out as "-inf". I tried 1-best
> decoding using
> > viterbi on the rescored lattice and the output is simply:
> >
> > lattice.out </s>
> >
> > where lattice.out is the utterance name inserted by lattice-tool.
> >
> > Do you have any idea why we're experiencing behaviour like this? Can you
> > suggest any alterations?
>
> John,
>
> the problem is that your lattices use double-quotes around the
> word strings,
> but the released version of SRILM does't yet implement the HTK quoting
> mechanism (an oversight on my part).
>
> You can replace the file lattice/src/HTKLattice.cc with the
> attached version
> and rebuild lattice-tool to make it work. Or, you can just strip the
> double quotes in your lattice files and keep using the old software.
>

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 Nov 21, 2008