Hi, Thanks for your answers, I will explain myself better.
I edit the lang/TrainerParams.txt file where I specify, for example: Algorithm=MAXENT Iterations=1000 Cutoff=0 Threads=4 Then I run the ParserTrainer from the CLI: bin/opennlp ParserTrainer -headRules /home/ragerri/experiments/parsing/opennlp/es/data/es-head-rules -parserType CHUNKING -params lang/TrainerParams.txt -lang es -model test.bin -encoding UTF-8 -data /home/ragerri/experiments/parsing/ancora-2.0/ancora2.treebank It trains fine, and the model works fine in a system using Apache OpenNLP API, but it still uses the cutoff 5 and 100 iterations that seems to be the default specification training parameters for ParserTrainer. I can change these parameters for parser training using the API, that works fine, but I cannot manage to do it from the command line. I did not understand your suggestion, Jörn, could you please provide an example? Thanks, Rodrigo On Tue, Apr 30, 2013 at 4:21 PM, Jörn Kottmann <[email protected]> wrote: > On 04/30/2013 04:03 PM, William Colen wrote: >> >> Are you using the command line tool? If yes, you should pass the path to >> the parameters file in the command line argument -params <file-path> >> > > The parser trains multiple models, to make the parameters work they are > prefixed, > the prefixes for the four models are: tagger, chunker, check and build. Just > put them in front > of the usual parameter names. > > HTH, > Jörn
