You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by Ben Rhelp <be...@yahoo.co.uk> on 2011/11/15 01:20:27 UTC

small typos in the documentation

Hi,

In the documentation:
http://incubator.apache.org/opennlp/documentation/manual/opennlp.html#tools.namefind.recognition.api


I think the example should be as follows (String->String[] and "years"->"years",)


    String[] sentence = new String[]{
            "Pierre",
            "Vinken",
            "is",
            "61",
            "years",
            "old",
            "."
            };


In

http://incubator.apache.org/opennlp/documentation/manual/opennlp.html#tools.tokenizer.api
Tokenizer tokenizer = new TokenizerME(model);
should be
TokenizerME tokenizer = new TokenizerME(model);

regards,

Ben

Re: small typos in the documentation

Posted by Jörn Kottmann <ko...@gmail.com>.
Hello,

thanks for catching this, it will be fixed in under this jira:
https://issues.apache.org/jira/browse/OPENNLP-374

Jörn

On 11/15/11 1:20 AM, Ben Rhelp wrote:
> Hi,
>
> In the documentation:
> http://incubator.apache.org/opennlp/documentation/manual/opennlp.html#tools.namefind.recognition.api
>
>
> I think the example should be as follows (String->String[] and "years"->"years",)
>
>
>      String[] sentence = new String[]{
>              "Pierre",
>              "Vinken",
>              "is",
>              "61",
>              "years",
>              "old",
>              "."
>              };
>
>
> In
>
> http://incubator.apache.org/opennlp/documentation/manual/opennlp.html#tools.tokenizer.api
> Tokenizer tokenizer = new TokenizerME(model);
> should be
> TokenizerME tokenizer = new TokenizerME(model);
>
> regards,
>
> Ben