DeepSpeech.py says :
AttributeError: ‘module’ object has no attribute ctc_beam_search_decoder_with_lm
The command arguments are not relevant since it works with the pre-built libctc_decoder_with_kenlm.so
, and this function (ctc_beam_search_decoder_with_lm
) is always needed.
I don’t find where the function is defined though, I suppose there should be a python binding from some C++ function in libctc_decoder_with_kenlm.so
to the python function ctc_beam_search_decoder_with_lm
.
EDIT : this page https://www.tensorflow.org/extend/adding_an_op describes the mechanism used to add a custom operation. For instance, my libctc_decoder_with_kenlm.so
does contain the following symbols :
000000000031bd70 w F .text 0000000000001be2 _ZN28CTCBeamSearchDecoderWithLMOp7ComputeEPN10tensorflow15OpKernelContextE
0000000000311730 w F .text 000000000000025a _ZN28CTCBeamSearchDecoderWithLMOpD2Ev
0000000000313450 w F .text 00000000000019d3 _ZN28CTCBeamSearchDecoderWithLMOpC2EPN10tensorflow20OpKernelConstructionE
0000000000ce43c8 w O .data.rel.ro 0000000000000018 _ZTI28CTCBeamSearchDecoderWithLMOp
0000000000ce4550 w O .data.rel.ro 0000000000000038 _ZTV28CTCBeamSearchDecoderWithLMOp
0000000000313450 w F .text 00000000000019d3 _ZN28CTCBeamSearchDecoderWithLMOpC1EPN10tensorflow20OpKernelConstructionE
0000000000311730 w F .text 000000000000025a _ZN28CTCBeamSearchDecoderWithLMOpD1Ev
000000000095cd20 w O .rodata 000000000000001f _ZTS28CTCBeamSearchDecoderWithLMOp
0000000000311990 w F .text 0000000000000262 _ZN28CTCBeamSearchDecoderWithLMOpD0Ev