Skip to content

Commit aa44e47

Browse files
committed
fix typo
1 parent 70ee687 commit aa44e47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kaldi_active_grammar/wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class KaldiGmmDecoder(KaldiDecoderBase):
7676
"""docstring for KaldiGmmDecoder"""
7777

7878
@classmethod
79-
def _init_ffi():
79+
def _init_ffi(cls):
8080
_ffi.cdef("""
8181
void* init_gmm(float beam, int32_t max_active, int32_t min_active, float lattice_beam,
8282
char* word_syms_filename_cp, char* fst_in_str_cp, char* config_cp);
@@ -126,7 +126,7 @@ class KaldiOtfGmmDecoder(KaldiDecoderBase):
126126
"""docstring for KaldiOtfGmmDecoder"""
127127

128128
@classmethod
129-
def _init_ffi():
129+
def _init_ffi(cls):
130130
_ffi.cdef("""
131131
void* init_otf_gmm(float beam, int32_t max_active, int32_t min_active, float lattice_beam,
132132
char* word_syms_filename_cp, char* config_cp,
@@ -230,7 +230,7 @@ class KaldiPlainNNet3Decoder(KaldiNNet3Decoder):
230230
"""docstring for KaldiPlainNNet3Decoder"""
231231

232232
@classmethod
233-
def _init_ffi():
233+
def _init_ffi(cls):
234234
_ffi.cdef("""
235235
void* init_plain_nnet3(float beam, int32_t max_active, int32_t min_active, float lattice_beam, float acoustic_scale, int32_t frame_subsampling_factor,
236236
char* mfcc_config_filename_cp, char* ie_config_filename_cp, char* model_filename_cp,

0 commit comments

Comments
 (0)