【发布时间】:2016-10-13 21:43:14
【问题描述】:
我使用 maven 来管理依赖项。我需要使用斯坦福 NLP 解析器来获取英语句子的通用依赖项。我正在使用 edu/stanford/nlp/models/lexparser/englishPCFG.ser.gz 模型。我的 pom.xml 包含以下内容
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-parser</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>edu.stanford.nlp</groupId>
<artifactId>stanford-parser</artifactId>
<version>3.6.0</version>
<classifier>models</classifier>
</dependency>
通过添加模型依赖项,jar 大小增加了大约 300MB。我需要确保罐子尽可能小。有没有办法在 maven 中处理这个问题?
【问题讨论】:
标签: stanford-nlp