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) |
| ParsingLattice * | parsingLatticeLoad (const char *filename, const double acoustic_factor) |
| ParsingChart * | parsingLatticeToChart (const Grammar *grammar, const ParsingLattice *lattice, const gboolean use_acoustic) |
| void | parsingLatticeSave (const ParsingLattice *lattice, const char *filename) |
| ParsingChart * | parsingLatticeParse (const ParsingLattice *lattice, const Grammar *grammar, const gboolean use_acoustic, const ParsingMode parsing_mode) |
| ParsingLattice * | parsingLatticeCreate () |
| void | parsingLatticeFree (ParsingLattice **lattice) |
parselattice module).
SlpTK Library 0.6.0
<latticeparser.h> 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)
| #define GET_LINK | ( | ParsingLattice, | |||
| unsigned int | ) |
Get a given parsing lattice link (arc) indexed by the second argument.
| #define SILENCE "<SIL>" |
| ParsingLattice * parsingLatticeCreate | ( | ) |
Allocate and initialize a new parsing lattice (constructor)
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.
| [in] | lattice | The considered parsing lattice |
DeleteSilences | void parsingLatticeDeleteUnreachedNodes | ( | ParsingLattice * | lattice | ) |
Delete nodes which are not the start or end of a at least one link
| [in] | lattice | The parsing lattice to consider |
DeleteUnreachedNodes | void parsingLatticeFree | ( | ParsingLattice ** | lattice | ) |
Free the memory allocated to a parsing lattice (destructor)
| [in] | lattice | The parsing lattice to free |
Libere_Lattice | ParsingLattice ** parsingLatticeLoad | ( | const char * | filename, | |
| const double | acoustic_factor | |||
| ) |
Load a parsing lattice from the content of a (human-readable) textual file.
| [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 |
NULL if operation fails)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
| [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 |
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.
| [in] | lattice | The parsing lattice to save |
| [in] | filename | The output lattice filename |
| ParsingChart * parsingLatticeToChart | ( | const Grammar * | grammar, | |
| const ParsingLattice * | lattice, | |||
| const gboolean | use_acoustic | |||
| ) |
Create a parsing chart from the content of a parsing lattice
| [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 |
Lattice_to_Chart
1.4.7