Thanks. I will check that out.

Jeff


On Tue, Oct 22, 2013 at 5:00 AM, Jörn Kottmann <[email protected]> wrote:

> On 10/21/2013 10:21 PM, Jeffrey Zemerick wrote:
>
>> And this worked. I was just interested in why the second code worked and
>> the first did not. I feel sure I had the path to the model correct in the
>> first code because it showed a debug line about loading the model and
>> delayed about 60 seconds. I did not see any errors - just an empty array
>> of
>> name spans.
>>
>
> The model itself is just a container of all the resources the NameFinderME
> needs. To detect
>  names, you need to instantiate the NameFinderME and feed it with
> sentences.
>
> The documentation explains this, have a look here:
> http://opennlp.apache.org/**documentation/1.5.3/manual/**
> opennlp.html#tools.namefind.**recognition.api<http://opennlp.apache.org/documentation/1.5.3/manual/opennlp.html#tools.namefind.recognition.api>
>
> Also have a look at the JavaDocs of the NameFinderME.
>
> The sentences don't need to be read from the command line, the samples
> just do this
> for illustrations purposes. In a production system you probably have some
> kind of data base
> which contains everything,
>
> HTH,
> Jörn
>

Reply via email to