SoManyGoblins
SoManyGoblins

Reputation: 5937

Get TypedDependencies using StanfordParser Shift Reduce Parser

I am trying to use the Stanford Shift Reduce Parser with the Spanish model supplied. I am noticing, however, that unlike the Lexicalized Parser, I cannot get the TypedDependencies, despite sending the adequate flag -outputFormat typedDependencies, as it can be seen in lexparser.bat/sh.

Just in case, this is the Java code I'm using to pass the flags and creating the parser.

ShiftReduceParser model = ShiftReduceParser.loadModel(modelPath);
model.setOptionFlags("-factored", "-outputFormat", "penn,typedDependencies");
ArrayList<TaggedWord> taggedWords = new ArrayList<TaggedWord>();

Thank you

Upvotes: 0

Views: 162

Answers (1)

Christopher Manning
Christopher Manning

Reputation: 9450

The problem here is not the ShiftReduceParser, but simply that we don't currently support typed dependencies for Spanish currently - we only have them for English and Chinese.

(Looking ahead, the most likely thing to appear first is support for Universal Dependencies in the Neural Network Dependency Parser. Indeed, you could probably train such a model yourself now.)

Upvotes: 2

Related Questions