Neodawn
Neodawn

Reputation: 1096

How to use the pretrained MaltParser parsing models for english

I am trying to use the pretrained parsing model for English of the MaltParser by following the steps in the following page, but repeatedly getting a null pointer exception. http://maltparser.org/mco/english_parser/engmalt.html

I am trying this on a MaltParser version 1.4 and Java version 6 on a Windows machine. I think the model was trained on a Linux machine as some directory info in the model suggests so. I am not sure if that is causing a issue. I searched the net for help but did not find anything specific to this.

Kindly help me to solve this issue. Thanking you in advance.

Upvotes: 2

Views: 756

Answers (2)

Raullen Chai
Raullen Chai

Reputation: 315

maltparser ships with a few examples, e.g., maltparser-1.7.2\examples\apiexamples\srcex\org\maltparser\examples, that might be helpful.

Upvotes: 1

gawi
gawi

Reputation: 14227

You can try to use version 1.4.1.

From the version 1.4.1 release note:

Fixed a problem introduced in 1.4 with path separator in Microsoft Windows environment

Upvotes: 1

Related Questions