libsent/src/dfa/mkcpair.c File Reference

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

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

Go to the source code of this file.

Functions

boolean extract_cpair (DFA_INFO *dinfo)
 Extract category-pair constraint from DFA grammar and newly set the category pair matrix of the give DFA.
boolean cpair_append (DFA_INFO *dst, DFA_INFO *src, int coffset)
 Append the category pair matrix at the last.


Detailed Description

Extract category-pair constraint from DFA grammar.

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.

Author:
Akinobu LEE
Date:
Tue Feb 15 14:35:33 2005
Revision
1.1.1.1

Definition in file mkcpair.c.


Function Documentation

boolean 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 61 of file mkcpair.c.

Referenced by multigram_update().

boolean 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 119 of file mkcpair.c.

Referenced by multigram_append_to_global().


Generated on Tue Dec 18 16:01:38 2007 for Julius by  doxygen 1.5.4