libsent/include/sent/stddefs.h

基本の共通定義 [詳細]

#include <sent/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include <sys/time.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sent/machines.h>
#include <sent/util.h>
stddefs.hのインクルード依存関係図

ソースコードを見る。

マクロ定義

#define TRUE   1
#define FALSE   0
#define max(A, B)   ((A)>=(B)?(A):(B))
#define min(A, B)   ((A)<(B)?(A):(B))
#define abs(X)   ((X)>0?(X):-(X))
#define strmatch   !strcmp
 String match function, 0 if the given strings did not match.
#define strnmatch   !strncmp
 String match function with length limit, 0 if the given strings did not match.
#define DELM   " \t\n"
 Common text delimiter.
#define LOG_ZERO   -1000000
 definition of log(0) used to represent 'no value' in likelihood computation
#define LOG_ADDMIN   -13.815510558
#define MAX_WORD_NUM   65535
 Maximum size of vocabulary.
#define WORD_INVALID   65535
 Out of word ID to represent no-existence of word.
#define MAXLINELEN   1024
 Assumed maximum number of bytes per input line.

型定義

typedef unsigned char boolean
 Static PI value.
typedef float PROB
 Typedefs to handle speech inputs, parameters and words.
typedef float LOGPROB
 Log probability.
typedef short SP16
 16bit speech data
typedef float VECT
 Vector element.
typedef unsigned short WORD_ID
 Typedef for word ID.

列挙型

enum  LogOutputLevel { LOG_NORMAL, LOG_VERBOSE, LOG_DEBUG }
 

To specify log output level.

[詳細]
enum  { DIR_LR, DIR_RL }
 

To specify the direction of N-gram when reading ARPA file.

[詳細]

説明

基本の共通定義

作者:
Akinobu LEE
日付:
Sat Feb 12 11:49:37 2005

このファイルはすべてのライブラリで include されるべき共通ヘッダです. 基本的なCヘッダファイルの include, よく使われる定数値と式マクロの定義, すべての関数で共通して用いられる基本的な型の定義が含まれます.

また,Win32 モードでのコンパイルのための関数のマクロ定義も含みます.

参照:
machines.h
Revision
1.6

stddefs.h で定義されています。


マクロ定義

#define LOG_ADDMIN   -13.815510558

-log_e(-LOG_ZERO)

参照:
libsent/src/phmm/output.c

stddefs.h160 行で定義されています。

参照元 addlog(), と addlog_array().


型定義

typedef unsigned char boolean

Static PI value.

Static 2*PI value Static log_e(TPI) Boolean type

stddefs.h95 行で定義されています。

typedef float PROB

Typedefs to handle speech inputs, parameters and words.

Probability

stddefs.h178 行で定義されています。


列挙型

To specify log output level.

列挙型の値:
LOG_NORMAL 

Normal level.

LOG_VERBOSE 

Verbose level.

LOG_DEBUG 

Debug level.

stddefs.h163 行で定義されています。

anonymous enum

To specify the direction of N-gram when reading ARPA file.

列挙型の値:
DIR_LR 

left-to-right (for 2-gram)

DIR_RL 

right-to-left (for reverse 3-gram)

stddefs.h170 行で定義されています。


Juliusに対してTue Sep 22 00:14:50 2009に生成されました。  doxygen 1.6.0