当我从繁体中文转换为简体中文。我使用Ubuntu并安装opencc 1.0.4(通过源代码)。我使用Python 0.2 OpenCC(PIP安装opencc)opencc python导致分段错误
我在Python环境中尝试过(python3.4 +)
>>> import opencc
>>> opencc.convert('乾坤一擲')
>>> opencc.convert('乾坤一掷', config='s2t.json')
全因分段错误。
但是,如果我通过
[[email protected]]$ opencc -i text.txt"
其中的text.txt包含了中国传统的话使用opencc从系统的C库。没事。
任何人都遇到过这个和任何解决方案?谢谢