python - 在 python stanfordnlp 中使用斯坦福依赖项(而不是通用依赖项)

标签 python nlp stanford-nlp

我正在尝试重现一项情感分析研究,该研究使用斯坦福 NLP 库生成的依赖结构,问题是该研究是从 2011 年开始的,我发现斯坦福图书馆使用的是 斯坦福依赖项,但它现在使用通用依赖项,它给出了不同的结果(请参阅 https://nlp.stanford.edu/software/stanford-dependencies.shtml#English )。我的疑问是,是否仍然可以在 Python 中使用 stanfordnlp 库中的斯坦福依赖项?

最佳答案

没有原生 Python 模型,但您可以启动 Java Stanley CoreNLP 服务器并获取较旧的依赖项。

例如,该模型应使用斯坦福依赖项:

edu/stanford/nlp/models/parser/nndep/wsj_SD.gz

关于python - 在 python stanfordnlp 中使用斯坦福依赖项(而不是通用依赖项),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57478871/

相关文章:

java - NER标签数量

python - 如何使用 PILLOW 临时转换图像?

python - 根据文本与 LDA 主题/特征簇的相似性对文本进行分组

python - 并行 python : Communication pipe read error

python - 日语分词器的模块导入问题

machine-learning - 根据示例学习用关键字标记句子

ruby - Rails 3 中的斯坦福 corenlp gem 'Could not find JAR file'

java - 静音斯坦福 coreNLP 日志记录

python - if <obj> 和 if <obj> is not None 之间的区别

python - 在不使用 pip 的情况下安装 python wheel 文件