I have been trying to do KWS for OOV words. I was able to train the confusion matrix and the g2p model. I am however getting an error when I am applying the g2p model. Below is the error message:
# cat stanford_cs/data/kws/g2p/wordlist.txt | g2p.py -V 0.95 --variants-number 10 --encoding utf-8 --model exp/g2p/g2p.model.final --apply - > stanford_cs/data/kws/g2p/output
# Started at Fri Dec 11 23:33:33 EST 2015
#
Traceback (most recent call last):
File "/data/ASR1/tools/G2P/g2p/g2p.py", line 38, in <module>
import SequiturTool
File "/data/ASR1/tools/G2P/g2p/SequiturTool.py", line 34, in <module>
from sequitur import Sequitur, ModelTemplate, DefaultDiscountAdjuster, StaticDiscounts, FixedDiscounts, EagerDiscountAdjuster
File "/data/ASR1/tools/G2P/g2p/sequitur.py", line 32, in <module>
import sequitur_, SequenceModel, Minimization, misc
File "/data/ASR1/tools/G2P/g2p/sequitur_.py", line 5, in <module>
import _sequitur_
ImportError: /data/ASR1/tools/G2P/g2p/build/lib.linux-x86_64-2.4/_sequitur_.so: undefined symbol: Py_InitModule4
# Accounting: time=7 threads=1
# Ended (code 1) at Fri Dec 11 23:33:40 EST 2015, elapsed time 7 seconds
The funny part is, I was able to run this a few months ago. This issue seems like a python version mismatch to me. Can some one help me in figuring out what is wrong with my setup? Please let me know if any more information is required.