我正在使用带有 python nltk 的麦芽解析器。我已经成功下载了训练数据并更新了最新的 nltk。当我调用 malt 解析器时,它给了我一个断言错误。下面是来自 python 的代码,其中也包括回溯。
mp = MaltParser("C:/Users/mustufain/Desktop/Python Files/maltparser-1.8.1","C:/Users/mustufain/Desktop/Python Files/maltparser-1.7.2",additional_java_args=['-Xmx512m'])
Traceback (most recent call last):
File "<pyshell#10>", line 1, in <module>
mp = MaltParser("C:/Users/mustufain/Desktop/Python Files/maltparser-1.8.1","C:/Users/mustufain/Desktop/Python Files/maltparser-1.7.2",additional_java_args=['-Xmx512m'])
File "C:\Python34\lib\site-packages\nltk\parse\malt.py", line 131, in __init__
self.malt_jars = find_maltparser(parser_dirname)
File "C:\Python34\lib\site-packages\nltk\parse\malt.py", line 72, in find_maltparser
assert malt_dependencies.issubset(_jars)
AssertionError
>>>