ctcdecode
ctcdecode copied to clipboard
segfault src/path_trie.cpp: No such file or directory.
Hello,
When I use language model in a binary format I get a segfault. I tried to run in gdb and it seems that path_trie.cpp is missing. What could be a problem?
Thread 24 "python" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fff45fff700 (LWP 9951)] PathTrie::get_path_trie (this=this@entry=0x7fff45ffebe0, new_char=new_char@entry=1, new_timestep=new_timestep@entry=0, reset=reset@entry=true) at /tmp/pip-qveo70c7-build/ctcdecode/src/path_trie.cpp:56 56 /tmp/pip-qveo70c7-build/ctcdecode/src/path_trie.cpp: No such file or directory.
Hi,I've got the following information not in this project but related: beam_args.add_argument('--lm-path', default="", type=str, help='Path to an (optional) kenlm language model for use with beam search (req'd with trie)') and what should the lm-path be like if i want to use the kenlm for example using"https://github.com/kpu/kenlm/tree/master/lm"? Thank you!
Hi,I've got the following information not in this project but related: beam_args.add_argument('--lm-path', default="", type=str, help='Path to an (optional) kenlm language model for use with beam search (req'd with trie)') and what should the lm-path be like if i want to use the kenlm for example using"https://github.com/kpu/kenlm/tree/master/lm"? Thank you! To add,the use of lm-path is like the following: class BeamCTCDecoder(Decoder): def init(self, labels, lm_path=None, alpha=0, beta=0, cutoff_top_n=40, cutoff_prob=1.0, beam_width=100, num_processes=4, blank_index=0): super(BeamCTCDecoder, self).init(labels) try: from ctcdecode import CTCBeamDecoder except ImportError: raise ImportError("BeamCTCDecoder requires paddledecoder package.") self._decoder = CTCBeamDecoder(labels, lm_path, alpha, beta, cutoff_top_n, cutoff_prob, beam_width, num_processes, blank_index)