segmentation fault when calling generate function in python runtime
Closed this issue · 0 comments
Saibo-creator commented
Hello @inariksit
Thanks for the great tutorials for using GF in other languages! They are very helpful!
I'm particuarly interested in the generation
function of the grammar, i.e. use incremental parser to suggest grammtically correct next words, as shown in the demo "minibar":https://cloud.grammaticalframework.org/minibar/minibar.html
But when I try to call the generate
function in python runtime , I get the following error:
Reproduction:
import pgf
gr = pgf.readPGF("MiniLang.pgf")
eng = gr.languages["MiniLangEng"]
eng.complete("the star is big")
Error:
23484 segmentation fault python ReflTransfer.py
Since the python runtime is binded from the c runtime, I guess this issue is caused by a bug in the c runtime.
Do you think I should raise this issue in the GF_core project repository ?
Thank you!