PocketSphinx  5.0.0
A small speech recognizer
Macros | Typedefs | Enumerations
model.h File Reference

Public API for language models. More...

#include <stdio.h>
#include <pocketsphinx/prim_type.h>
#include <pocketsphinx/logmath.h>
#include <pocketsphinx/export.h>

Go to the source code of this file.

Macros

#define NGRAM_INVALID_WID   -1
 

Typedefs

typedef struct cmd_ln_s ps_config_t
 
typedef struct jsgf_s jsgf_t
 
typedef struct jsgf_rule_s jsgf_rule_t
 
typedef struct fsg_model_s fsg_model_t
 
typedef struct ngram_model_s ngram_model_t
 
typedef struct hash_iter_s jsgf_rule_iter_t
 
typedef struct ngram_class_s ngram_class_t
 
typedef enum ngram_file_type_e ngram_file_type_t
 
typedef enum ngram_case_e ngram_case_t
 
typedef struct ngram_iter_s ngram_iter_t
 
typedef struct ngram_model_set_iter_s ngram_model_set_iter_t
 

Enumerations

enum  ngram_file_type_e { NGRAM_INVALID = -1, NGRAM_AUTO, NGRAM_ARPA, NGRAM_BIN }
 File types for N-Gram files. More...
 
enum  ngram_case_e { NGRAM_UPPER, NGRAM_LOWER }
 Constants for case folding. More...
 

Detailed Description

Public API for language models.

Because doxygen is Bad Software, the actual documentation can only exist in jsgf_t, fsg_model_t, and ngram_model_t. Sorry about that.

Macro Definition Documentation

◆ NGRAM_INVALID_WID

#define NGRAM_INVALID_WID   -1

Impossible word ID

Enumeration Type Documentation

◆ ngram_file_type_e

File types for N-Gram files.

pocketsphinx/model.h

Enumerator
NGRAM_INVALID 

Not a valid file type.

NGRAM_AUTO 

Determine file type automatically.

NGRAM_ARPA 

ARPABO text format (the standard).

NGRAM_BIN 

Sphinx .DMP format.

◆ ngram_case_e

Constants for case folding.

pocketsphinx/model.h

Enumerator
NGRAM_UPPER 

Upper case

NGRAM_LOWER 

Lower case