confidence.h File Reference

#include <stdio.h>
#include <logmath.h>
#include "dict.h"
#include "lm.h"
#include "fillpen.h"
#include "s3types.h"
#include "search.h"

Go to the source code of this file.

Classes

struct  ca_dagnode_type
struct  ca_daglink_type
struct  ca_dag_type

Defines

#define CONFIDENCE_MAX_INT   2147483640
#define CONFIDENCE_MIN_INT   -2147483640
#define CONFIDENCE_FAILURE   0
#define CONFIDENCE_SUCCESS   1
#define MAGIC_CONFIDENCE_CONSTANT   39.5
#define MIN_LOG   -690810000

Typedefs

typedef struct ca_dagnode_type ca_dagnode
typedef struct ca_daglink_type ca_daglink
typedef struct ca_dag_type ca_dag

Functions

S3DECODER_EXPORT int32 confidence_word_posterior (char *dagfile, seg_hyp_line_t *seg_hyp_line, char *uttid, lm_t *lm, dict_t *dict, fillpen_t *fpen)
S3DECODER_EXPORT int compute_lmtype (seg_hyp_line_t *seg_hyp_line, lm_t *lm, dict_t *dict)
S3DECODER_EXPORT int compute_combined_lmtype (seg_hyp_line_t *seg_hyp_line)

Define Documentation

#define CONFIDENCE_FAILURE   0
#define CONFIDENCE_MAX_INT   2147483640
#define CONFIDENCE_MIN_INT   -2147483640
#define CONFIDENCE_SUCCESS   1

Referenced by dump_line().

#define MAGIC_CONFIDENCE_CONSTANT   39.5
#define MIN_LOG   -690810000

Typedef Documentation

typedef struct ca_dag_type ca_dag
typedef struct ca_daglink_type ca_daglink
typedef struct ca_dagnode_type ca_dagnode

structure specific for node of DAG for confidence annotation.


Function Documentation

S3DECODER_EXPORT int compute_combined_lmtype ( seg_hyp_line_t seg_hyp_line  ) 
S3DECODER_EXPORT int compute_lmtype ( seg_hyp_line_t seg_hyp_line,
lm_t lm,
dict_t dict 
)

Compute the LM type of (Need more documents)

Parameters:
seg_hyp_line A seg_hyp line
S3DECODER_EXPORT int32 confidence_word_posterior ( char *  dagfile,
seg_hyp_line_t seg_hyp_line,
char *  uttid,
lm_t lm,
dict_t dict,
fillpen_t fpen 
)

Compute word posterior probability given a hypotheiss and the corresponding DAG.

Parameters:
dagfile The file name of the DAG
seg_hyp_line a pointer of a seg_hyp_line_t
uttid The utterance ID
lm An LM
dict Dictionary
fpen Filler penalty structure

Generated on 7 Mar 2010 by  doxygen 1.6.1