In Java both are valid syntaxes to represent an array of chars, the
preferred syntax should have been char[] eosCharacters.
The getter method actually returns a char[]
public char[] getEndOfSentenceCharacters() {
return eosCharacters;
}
On Wed, Feb 8, 2017 at 10:01 AM, ABHISHEK MAITI <[email protected]>
wrote:
> Hi!
> I was going through the codebase which is present on Github. I found a line
> in this
> <https://github.com/apache/opennlp/blob/master/opennlp-
> tools/src/main/java/opennlp/tools/sentdetect/DefaultEndOfSentenceScanner.
> java>
> file which I couldn't understand (line no. 31).Is it supposed to be char
> eosCharacters[]? I was expecting it to be char[] eosCharacters.
>
> Thanks!
>
> *Abhishek Maiti*
> *B.Tech 2016 | Computer Science and Engineering*
> Indraprastha Institute Of Information Technology
> New Delhi
> +918447549121
>