You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by Tabea Schröder <T....@fh-aachen.de> on 2013/07/10 15:07:17 UTC
redirect command line output
Hallo,
im using the Api to Train the Models for SentenceSegmentation, Tokenization, Pos Tagging and Namend Entity Recognition.
It works, but I always get the command line output:
Performing 100 iterations.
1: ... loglikelihood=-138.6294361119891 0.85
2: ... loglikelihood=-68.11381461608028 0.85
3: ... loglikelihood=-57.62881976526882 0.85
4: ... loglikelihood=-51.74177560474574 0.85
5: ... loglikelihood=-47.32004951552199 0.9
6: ... loglikelihood=-43.95176152031344 0.9
.......
Is it possible to redirect this output into a String or a file.
Thanks in advance
Tabea
Re: redirect command line output
Posted by Marco Sabatini <ma...@wedjaa.net>.
You can use the operator redirect (for example "training command" > ouptut.txt )
regards,
Marco Sabatini
sabatini.m@gmail.com
--------------------------------------------------
Linkedin: http://it.linkedin.com/in/sabatinimarco
skype: marco.sabatini1
----------------------------------------------------
On Jul 10, 2013, at 3:07 PM, Tabea Schröder wrote:
> It works, but I always get the command line output:
Marco Sabatini
marco.sabatini@wedjaa.net
System Engineer @
Re: redirect command line output
Posted by Jörn Kottmann <ko...@gmail.com>.
Hello,
its not possible currently to redirect this output when not using the
command line.
We plan to introduce an API which can report the training progress back
to the caller.
You are welcome to help us with that.
Jörn
On 07/10/2013 03:07 PM, Tabea Schröder wrote:
> Hallo,
>
> im using the Api to Train the Models for SentenceSegmentation,
> Tokenization, Pos Tagging and Namend Entity Recognition.
> It works, but I always get the command line output:
>
> Performing 100 iterations.
> 1: ... loglikelihood=-138.6294361119891 0.85
> 2: ... loglikelihood=-68.11381461608028 0.85
> 3: ... loglikelihood=-57.62881976526882 0.85
> 4: ... loglikelihood=-51.74177560474574 0.85
> 5: ... loglikelihood=-47.32004951552199 0.9
> 6: ... loglikelihood=-43.95176152031344 0.9
> .......
>
>
> Is it possible to redirect this output into a String or a file.
>
> Thanks in advance
>
> Tabea
>