glecorve / rnnlm2wfst

Conversion of recurrent neural network language models to weighted finite state transducers
Apache License 2.0
55 stars 15 forks source link

segmentation fault(core dumped) #2

Open junshipeng opened 6 years ago

junshipeng commented 6 years ago

when I run “”bin/rnn2fst -rnnlm examples/rnn2wfst.model -fst examples/rnn2wfst.k1+8.p1e-3.fst -discretize examples/rnn2wfst.1+8.kmeans -hcluster -prune 1e-3 -backoff 2”,it will show “segmentation fault(core dumped)“. and in build_cluster_hierarchy.pl,function compute_word_probs("$f.membership",$WRD_TRACE, \%w_probs); as $WRD_TRACE has no definition and the function did not compute normally, anybody know how to use this tool?

zw76859420 commented 2 years ago

when I run “”bin/rnn2fst -rnnlm examples/rnn2wfst.model -fst examples/rnn2wfst.k1+8.p1e-3.fst -discretize examples/rnn2wfst.1+8.kmeans -hcluster -prune 1e-3 -backoff 2”, it will show “new cluster in 0th level 0th level : 1 clusters new cluster in 1th level new cluster in 1th level 1th level : 2 clusters MIN BACKOFF -1 | ∅ H=0.42687 / N proc'd=0 / N added=0 (-nan %) / N bo=0 (-nan %) / 0/0 Nodes (-nan %)run_rnnlm2fst.sh: line 32: 29908 Segmentation fault (core dumped) bin/rnn2fst -rnnlm ${model_checkpoint} -fst ${model_fst} -discretize ${model_kmeans} -hcluster -prune 1e-3 -backoff -1“ anybody know how to use this tool?

Thanks