-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
I am running this notebook and I got a segmentation fault in the N-gram decoding loop. The line that is triggering the segfault is this one. I downloaded the N-gram graphs from here and compiled following these instructions. Running the code with rescore=False when calling lmDecoderUtils.lm_decode works well.
This example produces the segmentation fault:
import neuralDecoder.utils.lmDecoderUtils as lmDecoderUtils
lmDir = './languageModel'
ngramDecoder = lmDecoderUtils.build_lm_decoder(
lmDir,
acoustic_scale=0.5,
nbest=100,
beam=18
)
ngramDecoder.Rescore()
The otuput in the terminal is the following:
WARNING: Logging before InitGoogleLogging() is written to STDERR
I0117 12:34:17.155279 762859 brain_speech_decoder.h:52] Reading fst ./languageModel/TLG.fst
I0117 12:36:37.021819 762859 brain_speech_decoder.h:81] Reading symbol table ./languageModel/words.txt
Fatal Python error: Segmentation fault
Current thread 0x00007ff887cfb740 (most recent call first):
File "/home/gridsan/dbeneto/TFG/speechBCI/debug.py", line 11 in <module>
Segmentation fault
colehurwitz
Metadata
Metadata
Assignees
Labels
No labels