/usr/include/sphinx3/classifier.h is in libs3decoder-dev 0.8-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | /* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef __SPHINX3_CLASSIFIER_H
#define __SPHINX3_CLASSIFIER_H
#include "s3types.h"
#include "cont_mgau.h"
#ifdef __cplusplus
extern "C" {
#endif
#if 0
} /* Fool Emacs into not indenting things. */
#endif
#define CEP_LEN 13
#define VOTING_LEN 5
#define CLASS_LATENCY 2
#define CLASS_SILENCE_PRIOR 0.4f
#define CLASS_OWNER_PRIOR 0.4f
#define CLASS_SECONDARY_PRIOR 0.1f
#define CLASS_NOISE_PRIOR 0.1f
enum {
CLASS_NOISE = 0,
CLASS_OWNER,
CLASS_SECONDARY,
CLASS_SILENCE,
NUM_CLASSES
};
enum {
EP_MAYBE = 0,
EP_SILENCE,
EP_SPEECH
};
typedef struct {
mgau_model_t *gmm;
s3cipid_t class_map[NUM_CLASSES];
int32 frame_prob[NUM_CLASSES];
int *cached_classes;
int num_frames;
int max_frames;
int voting_frames[VOTING_LEN];
int post_classify;
int32 prior_prob[NUM_CLASSES] ;
} classifier_t;
typedef struct {
int *endpts;
int num_endpts;
int max_endpts;
int state;
int start_counter;
int cancel_counter;
int end_counter;
int counter;
int pad_cancel;
int pad_leader;
int pad_trailer;
} endptr_t;
int cl_init(classifier_t *_cl, char *_mdef_file, char *_means_file, char *_vars_file,
float64 _var_floor, char *_mix_weights_file,
float64 _mix_weight_floor, char *_gm_type, int _post_classify);
void cl_finish(classifier_t *_cl);
void cl_calc_frame_prob(classifier_t *_cl, float32 *_frame);
int cl_classify_frames(classifier_t *_cl, float32 **_frames, int _num_frames,
int **_classes);
void ep_init(endptr_t *_ep, int _pad_leader, int _pad_trailer,
int _pad_cancel);
void ep_finish(endptr_t *_ep);
int ep_endpoint(endptr_t *_ep, int *_classes, int _num_frames,
int **_endpts);
#if 0
{ /* Stop indent from complaining */
#endif
#ifdef __cplusplus
}
#endif
#endif
|