libjulius/src/wchmm_check.c File Reference

Manual inspection of tree lexicon. More...

#include <julius/julius.h>

Go to the source code of this file.

Functions

static void print_winfo_w (WORD_INFO *winfo, WORD_ID word, boolean ngram_exist)
 Display informations of a word in the dictionary.
static void print_wchmm_w (WCHMM_INFO *wchmm, WORD_ID word)
 Display the location of a word in the tree lexicon.
static void print_wchmm_s (WCHMM_INFO *wchmm, int node)
 Display informations assigned to a node in the tree lexicon.
static void print_wchmm_s_arc (WCHMM_INFO *wchmm, int node)
 Display list of transition arcs from a node in the tree lexicon.
static void print_wchmm_s_successor (WCHMM_INFO *wchmm, int node)
 Display factoring values on a node in the tree lexicon.
static void print_hmminfo (char *name, HTK_HMM_INFO *hmminfo)
 Lookup an HMM of given name, and display specs of it.
static void print_ngraminfo (NGRAM_INFO *ngram, int nid)
 Display specs of a word in the word N-gram.
void wchmm_check_interactive (WCHMM_INFO *wchmm)
 Command loop to browse and check the structure of the constructed tree lexicon on startup.
void check_wchmm (WCHMM_INFO *wchmm)
 Check coherence of tree lexicon (for internal debug only!).


Detailed Description

Manual inspection of tree lexicon.

This file defines some functions to browse and check the structure of the tree lexicon at startup time. When invoking with "-check wchmm", it will enter to a prompt mode after tree lexicon is generated, and you can check its structure, e.g. how the specified word is located in the tree lexicon, or what kind of information a node has in it.

Author:
Akinobu Lee
Date:
Sat Sep 24 15:45:06 2005
Revision
1.1.1.1

Definition in file wchmm_check.c.


Function Documentation

static void print_winfo_w ( WORD_INFO winfo,
WORD_ID  word,
boolean  ngram_exist 
) [static]

Display informations of a word in the dictionary.

Parameters:
winfo [in] word dictionary
word [in] ID of a word to be displayed
ngram_exist [in] TRUE when an N-gram was tied with this winfo

Definition at line 56 of file wchmm_check.c.

Referenced by wchmm_check_interactive().

static void print_wchmm_w ( WCHMM_INFO wchmm,
WORD_ID  word 
) [static]

Display the location of a word in the tree lexicon.

Parameters:
wchmm [in] tree lexicon
word [in] word ID

Definition at line 101 of file wchmm_check.c.

Referenced by wchmm_check_interactive().

static void print_wchmm_s ( WCHMM_INFO wchmm,
int  node 
) [static]

Display informations assigned to a node in the tree lexicon.

Parameters:
wchmm [in] tree lexicon
node [in] node id

Definition at line 132 of file wchmm_check.c.

Referenced by wchmm_check_interactive().

static void print_wchmm_s_arc ( WCHMM_INFO wchmm,
int  node 
) [static]

Display list of transition arcs from a node in the tree lexicon.

Parameters:
wchmm [in] tree lexicon
node [in] node ID

Definition at line 198 of file wchmm_check.c.

Referenced by wchmm_check_interactive().

static void print_wchmm_s_successor ( WCHMM_INFO wchmm,
int  node 
) [static]

Display factoring values on a node in the tree lexicon.

Parameters:
wchmm [in] tree lexicon
node [in] node ID

Definition at line 236 of file wchmm_check.c.

Referenced by wchmm_check_interactive().

static void print_hmminfo ( char *  name,
HTK_HMM_INFO hmminfo 
) [static]

Lookup an HMM of given name, and display specs of it.

Parameters:
name [in] HMM logical name
hmminfo [in] HMM definition

Definition at line 277 of file wchmm_check.c.

Referenced by wchmm_check_interactive().

static void print_ngraminfo ( NGRAM_INFO ngram,
int  nid 
) [static]

Display specs of a word in the word N-gram.

Parameters:
ngram [in] word N-gram
nid [in] N-gram word ID

Definition at line 304 of file wchmm_check.c.

Referenced by wchmm_check_interactive().

void wchmm_check_interactive ( WCHMM_INFO wchmm  ) 

Command loop to browse and check the structure of the constructed tree lexicon on startup.

Parameters:
wchmm [in] tree lexicon

Definition at line 328 of file wchmm_check.c.

Referenced by check_wchmm(), j_launch_recognition_instance(), and multigram_rebuild_wchmm().

Here is the caller graph for this function:

void check_wchmm ( WCHMM_INFO wchmm  ) 

Check coherence of tree lexicon (for internal debug only!).

Parameters:
wchmm [in] tree lexicon

Definition at line 443 of file wchmm_check.c.


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