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: "format error in lattice file"?

From: Andreas Stolcke <stolcke at ADDRESS HIDDEN>
Date: Tue, 22 Feb 2005 18:53:11 PST

In message <ae8e0a183c36947961abcf4e19368c59 at ADDRESS HIDDEN>you wrote:
> Hi folks,
>
> I've used lattice-tool to take a lattice file in HTK SLF format and
> convert it to a file in PFSG format. This seems to have worked okay,
> looking at the newly created file, it seems to correspond to the format
> described in the pfsg-format man page. I used the following syntax to
> create the file:
>
> lattice-tool -read-htk -in-lattice htklattice.lat -out-lattice
> pfsglattice.lat
>
> However now I'm trying to use this new lattice file as the input to
> nbest-lattice, to create an n-best list. Here's the syntax I'm trying
> to use:
>
> nbest-lattice -read pfsglattice.lat -write-nbest nbest.txt

nbest-lattice is the wrong tool.  I makes lattices from nbest lists,
not the other way around ;-)  Also, it deals with yet another lattice
format, which is described in wlat-format(5).

What you want is the lattice-tool -nbest-decode function.  This generates
nbest lists from lattices, and you don't even have to convert them first.
In fact, it is preferable to generate nbest directly from HTK lattices.

Make sure you have SRILM 1.4.3.

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