I'm sorry I can't see it! Which class should I be looking into?
I can only see 3 train methods in the NameFinderME...they basically take the same args + |AdaptiveFeatureGenerator <http://opennlp.sourceforge.net/api/opennlp/tools/util/featuregen/AdaptiveFeatureGenerator.html>, ||iterations, cutoff|...

None of the args is of type TrainingParameters. I s there another NameFinder class somewhere?

Jim


On 05/10/12 16:31, William Colen wrote:
Use the train method that gets a TrainingParameters.

Check how to create it in TrainingParameters.defaultParams().

On Fri, Oct 5, 2012 at 12:25 PM, Jim foo.bar <[email protected]> wrote:

Hi William,

First of all thanks for the prompt reply, however I am using the API not
the cmd tool...
where do I pass that properties file?

Jim



On 05/10/12 16:20, William Colen wrote:

Yes, you can. Just create a properties file like follows

Threads=8
Iterations=100
Algorithm=PERCEPTRON
Cutoff=0

and train passing the properties file in the argument -params

Note that perceptron models benefit from cutoff 0. For Maxent models
usually you set something like 5. I usually try different values with the
CV tool to find the best cutoff value.

Regards
William

On Fri, Oct 5, 2012 at 11:59 AM, Jim foo.bar <[email protected]>
wrote:

  Hi all,
is it at all possible to train a  name-finder using perceptron instead of
maxent? The documentation says that openNLP supports both but I can only
find examples for pos-tagging and nothing else (sentence detection ,NER,
chunking etc etc)...

thanks in advance...

Jim



Reply via email to