Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

mkcpair.c File Reference

Extract category-pair constraint from DFA grammar. More...

#include <sent/stddefs.h>
#include <sent/dfa.h>

Include dependency graph for mkcpair.c:

Go to the source code of this file.

Functions

void extract_cpair (DFA_INFO *dinfo)
void cpair_append (DFA_INFO *dst, DFA_INFO *src, int coffset)


Detailed Description

Extract category-pair constraint from DFA grammar.

Author:
Akinobu LEE
Date:
Tue Feb 15 14:35:33 2005
These functions extract whether the each grammar category can be connected or not in the given DFA grammar, and store the extracted data to the DFA grammar information. This category-pair constraint will be used at the first pass of recognition as a degenerated linguistic constraint.

If a short pause word is defined in the grammar, the connection constraint will be extracted considering the skipping of this pause model, since the pause word may not appear on the specified location in the actual utterance.

Please note that a grammar rule that allows such skippable short-pause word to appear at the beginning and end of sentence is prohibited. Instead, you should use another (non-skippable) silence word like "sil" as the beginning and ending of sentence to match the head and tail silence.

Revision
1.1.1.1

Definition in file mkcpair.c.


Function Documentation

void extract_cpair DFA_INFO dinfo  ) 
 

Extract category-pair constraint from DFA grammar and newly set the category pair matrix of the give DFA.

Parameters:
dinfo [i/o] DFA grammar, in which the category-pair matrix will be created.

Definition at line 60 of file mkcpair.c.

void cpair_append DFA_INFO dst,
DFA_INFO src,
int  coffset
 

Append the category pair matrix at the last.

Parameters:
dst [i/o] DFA grammar
src [in] DFA grammar to be appended to dst
coffset [in] category id in dst where the new data should be stored

Definition at line 113 of file mkcpair.c.


Generated on Tue Mar 28 16:03:02 2006 for Julius by  doxygen 1.4.2