LatticeParser - Speech lattice parsing module
[Syntactic tools level]

Speech lattice syntactic parsing algorithm (former parselattice module). More...

Data Structures

struct  ParsingLatticeLink
 Link (arc) between two nodes of a parsing lattice. More...
struct  ParsingLattice
 Speech lattice. More...

Defines

#define SILENCE   "<SIL>"
 String that specifies a silence in a speech lattice file.
#define GET_LINK(ParsingLattice, unsigned int)
 Get a given parsing lattice link (arc) indexed by the second argument.

Functions

void parsingLatticeDeleteSilences (ParsingLattice *lattice)
void parsingLatticeDeleteUnreachedNodes (ParsingLattice *lattice)
ParsingLatticeparsingLatticeLoad (const char *filename, const double acoustic_factor)
ParsingChartparsingLatticeToChart (const Grammar *grammar, const ParsingLattice *lattice, const gboolean use_acoustic)
void parsingLatticeSave (const ParsingLattice *lattice, const char *filename)
ParsingChartparsingLatticeParse (const ParsingLattice *lattice, const Grammar *grammar, const gboolean use_acoustic, const ParsingMode parsing_mode)
ParsingLatticeparsingLatticeCreate ()
void parsingLatticeFree (ParsingLattice **lattice)

Detailed Description

Speech lattice syntactic parsing algorithm (former parselattice module).

SlpTK Library 0.6.0

Required header
<latticeparser.h>
Author:
Ramon Aragues (creation on 08.06.1998)

Jean-Cédric Chappelier (adaptation on 10.06.1998)

Jean-Cédric Chappelier (adaptation on 03.10.2000)

Antonin Merçay (revision on 03.02.2005)

Date:
2 March 2005
Version:
0.6.0

Define Documentation

#define GET_LINK ( ParsingLattice,
unsigned int   ) 

Get a given parsing lattice link (arc) indexed by the second argument.

See also:
ParsingLatticeLink ParsingLattice

#define SILENCE   "<SIL>"

String that specifies a silence in a speech lattice file.

See also:
parsingLatticeLoad()


Function Documentation

ParsingLattice * parsingLatticeCreate (  ) 

Allocate and initialize a new parsing lattice (constructor)

Returns:
The new parsing lattice instance
See also:
parsingLatticeFree()
Former(s) function(s):
Init_Lattice

void parsingLatticeDeleteSilences ( ParsingLattice lattice  ) 

Delete the silences in the parsing lattice by extending the links to the left . Follow the list of silences, create the new links generated by the extension and then delete the <SIL> link.

Parameters:
[in] lattice The considered parsing lattice
See also:
parsingLatticeDeleteUnreachedNodes()
Former(s) function(s):
DeleteSilences

void parsingLatticeDeleteUnreachedNodes ( ParsingLattice lattice  ) 

Delete nodes which are not the start or end of a at least one link

Parameters:
[in] lattice The parsing lattice to consider
See also:
parsingLatticeDeleteSilences()
Former(s) function(s):
DeleteUnreachedNodes

void parsingLatticeFree ( ParsingLattice **  lattice  ) 

Free the memory allocated to a parsing lattice (destructor)

Parameters:
[in] lattice The parsing lattice to free
See also:
parsingLatticeCreate()
Former(s) function(s):
Libere_Lattice

ParsingLattice ** parsingLatticeLoad ( const char *  filename,
const double  acoustic_factor 
)

Load a parsing lattice from the content of a (human-readable) textual file.

Parameters:
[in] filename The input lattice filename
[in] acoustic_factor The rescaling constant to apply to the acoustic probabilities read (useful for passing from log to log10
Returns:
The loaded parsing lattice (NULL if operation fails)
See also:
parsingLatticeSave()
Former(s) function(s):
ReadLatticeFile

ParsingChart * parsingLatticeParse ( const ParsingLattice lattice,
const Grammar grammar,
const gboolean  use_acoustic,
const ParsingMode  parsing_mode 
)

Perform a syntactical analysis (parsing) on a parsing lattice

Parameters:
[in] lattice The input parsing lattice
[in] grammar The source grammar
[in] use_acoustic The flag telling if the acoustic probability associated to each arc must be taken into account or not
[in] parsing_mode The parsing mode to use
Returns:
The output parsing chart
See also:
parsingLatticeToChart()
Former(s) function(s):
Analyse_Syntaxique_Lattice & Analyse_Syntaxique_Lattice_Type

void parsingLatticeSave ( const ParsingLattice lattice,
const char *  filename 
)

Save a parsing lattice into a (human-readable) textual file.

Parameters:
[in] lattice The parsing lattice to save
[in] filename The output lattice filename
See also:
parsingLatticeLoad()

ParsingChart * parsingLatticeToChart ( const Grammar grammar,
const ParsingLattice lattice,
const gboolean  use_acoustic 
)

Create a parsing chart from the content of a parsing lattice

Parameters:
[in] grammar The source grammar
[in] lattice The considered parsing lattice
[in] use_acoustic The flag telling if the acoustic probability associated to each arc must be taken into account or not
Returns:
The corresponding parsing chart
See also:
parsingLatticeParse()
Former(s) function(s):
Lattice_to_Chart


Generated on Thu Mar 22 17:46:31 2007 for SlpTk by  doxygen 1.4.7