【发布时间】:2015-02-16 18:32:43
【问题描述】:
我正在尝试将 Stanford Shift Reduce Parser 与提供的西班牙模型一起使用。然而,我注意到,与词法分析器不同,尽管发送了足够的标志 -outputFormat typedDependencies,但我无法获得 TypedDependencies,正如可以在 lexparser.bat/sh 中看到的那样。
以防万一,这是我用来传递标志和创建解析器的 Java 代码。
ShiftReduceParser model = ShiftReduceParser.loadModel(modelPath);
model.setOptionFlags("-factored", "-outputFormat", "penn,typedDependencies");
ArrayList<TaggedWord> taggedWords = new ArrayList<TaggedWord>();
谢谢
【问题讨论】: