Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segfault src/path_trie.cpp: No such file or directory. #66

Open
EgorLakomkin opened this issue Apr 19, 2018 · 2 comments
Open

segfault src/path_trie.cpp: No such file or directory. #66

EgorLakomkin opened this issue Apr 19, 2018 · 2 comments

Comments

@EgorLakomkin
Copy link

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.

@htZhang25
Copy link

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!

@htZhang25
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants