julius/wchmm_check.c File Reference

User inspection mode of tree lexicon. More...

#include <julius.h>

Include dependency graph for wchmm_check.c:

Go to the source code of this file.

Functions

static void print_winfo_w (WORD_INFO *winfo, WORD_ID word)
static void print_wchmm_w (WCHMM_INFO *wchmm, WORD_ID word)
static void print_wchmm_s (WCHMM_INFO *wchmm, int node)
static void print_wchmm_s_arc (WCHMM_INFO *wchmm, int node)
static void print_wchmm_s_successor (WCHMM_INFO *wchmm, int node)
static void print_hmminfo (char *name)
static void print_ngraminfo (NGRAM_INFO *ngram, int nid)
void wchmm_check_interactive (WCHMM_INFO *wchmm)
void check_wchmm (WCHMM_INFO *wchmm)


Detailed Description

User inspection mode of tree lexicon.

Author:
Akinobu Lee
Date:
Sat Sep 24 15:45:06 2005
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.

Revision
1.4

Definition in file wchmm_check.c.


Function Documentation

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

Display informations of a word in the dictionary.

Parameters:
winfo [in] word dictionary
word [in] ID of a word to be displayed.

Definition at line 53 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 96 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 127 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 196 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 224 of file wchmm_check.c.

Referenced by wchmm_check_interactive().

static void print_hmminfo ( char *  name  )  [static]

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

Parameters:
name [in] HMM logical name

Definition at line 262 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 290 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 313 of file wchmm_check.c.

void check_wchmm ( WCHMM_INFO wchmm  ) 

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

Parameters:
wchmm [in] tree lexicon

Definition at line 424 of file wchmm_check.c.


Generated on Tue Dec 26 16:17:00 2006 for Julius by  doxygen 1.5.0