Convert the *number* to a String and *get the length*. int *length* =
*Integer*.valueOf(eg[i]).toString().*length*(); Use this mathematical
equation (assuming that all the data in the array are strictly positive
*numbers*). eg[i] is of type int , which doesn't have the *length* property.
or go to link
http://stackoverflow.com/questions/1306727/way-to-get-number-of-digits-in-an-int

On Fri, Oct 28, 2016 at 4:57 PM, Pratik C <pratik.c...@gmail.com> wrote:

> Hi openNLP users,
>
> I am Pratik Chikhaliya. I am preparing for my Ph.D. Proposal in
> computational linguistics in the area of machine learning. But before i
> proceed for writing an abstract, it is good to go through NER open-source
> tools available till the present day. This idea led me to train some
> openNLP NER models. As i saw there are many feature generator options are
> available. So i tried few for custom feature generator, and those worked
> well. But when i tried to use the "character length" and "all digit"
> (custom feature generator);
>
> as in:
> 1.  how can i set the character length for all digits?
> 2.  how to send the tag for character length and all digits for training
> the model numericName model?
>
> i could not get appropriate response to that or i can say i could not get
> any documentation on that.
>
> I humbly request you to reply me at your earliest. I am looking for
> positive cum prompt response.
>
> Thank you.
>
> Regards,
> Pratik Chikhaliya
>

Reply via email to