我正在尝试从以下网站实现选区解析器。
https://bbengfort.github.io/snippets/2018/06/22/corenlp-nltk-parses.html
from nltk.parse.corenlpnltk.pa import CoreNLPParser
当我尝试上述步骤时,出现此错误。
Traceback (most recent call last): File "3main.py", line 2, in <module> from nltk.parse.corenlpnltk.pa import CoreNLPParser ImportError: No module named corenlpnltk.pa
导入错误。
用这个:
from nltk.parse.corenlp import CoreNLPParser
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句