1

Resolved

Hard-coded model path in demos.

description

When trying to run either ToolsExample or ParseTree demo, an exception occurs:
 
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Projects\DotNet\OpenNLP\OpenNLP\Models\parser\build.nbin'.
 
The model path should not be hardcoded. Please use a configuration file, or just 'models\' so the programs will respect the working directory.

comments

BartoszBien wrote Jan 22, 2007 at 9:32 AM

I just noticed there is a support for this in the *.config files. Sorry for a premature reporting. :]

richardn wrote Feb 11, 2007 at 11:10 AM

Hi - this was fixed in the last release. Thanks for raising it though.

Richard