#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. |
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.
Definition in file mkcpair.c.
boolean extract_cpair | ( | DFA_INFO * | dinfo | ) |
Extract category-pair constraint from DFA grammar and newly set the category pair matrix of the give DFA.
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().
Append the category pair matrix at the last.
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().