You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@opennlp.apache.org by Richard Eckart de Castilho <re...@apache.org> on 2017/01/25 22:16:43 UTC
Dump an OpenNLP model as a plaintext file
Hi again,
is there already some simple way to dump the data contained in an OpenNLP model
(e.g. POS tagger, lemmatizer or NER) file as a human readable text file so that
one could show show it to somebody?
Cheers,
-- Richard
Re: Dump an OpenNLP model as a plaintext file
Posted by vi...@yahoo.com.INVALID.
I had developed a tool that would dump out the MAXEnt model that I used for Document Classification some time back. If useful, I could try to find the code and make it available. I dont know if it works for the current release (1.7.x)
- viraf
From: Joern Kottmann <ko...@gmail.com>
To: "users@opennlp.apache.org" <us...@opennlp.apache.org>
Sent: Monday, January 30, 2017 8:10 AM
Subject: Re: Dump an OpenNLP model as a plaintext file
Hello Richard,
that is not possible. You can unzip the model and look a bit at its
content, but that is as good as it gets.
The classification model can be loaded and then you should be able to
iterate the features.
If you feel that is important to have we could probably build something to
print it to CSV file and then it could be opened with excel or similar
tools.
Jörn
On Wed, Jan 25, 2017 at 11:16 PM, Richard Eckart de Castilho <rec@apache.org
> wrote:
> Hi again,
>
> is there already some simple way to dump the data contained in an OpenNLP
> model
> (e.g. POS tagger, lemmatizer or NER) file as a human readable text file so
> that
> one could show show it to somebody?
>
> Cheers,
>
> -- Richard
Re: Dump an OpenNLP model as a plaintext file
Posted by Joern Kottmann <ko...@gmail.com>.
Hello Richard,
that is not possible. You can unzip the model and look a bit at its
content, but that is as good as it gets.
The classification model can be loaded and then you should be able to
iterate the features.
If you feel that is important to have we could probably build something to
print it to CSV file and then it could be opened with excel or similar
tools.
Jörn
On Wed, Jan 25, 2017 at 11:16 PM, Richard Eckart de Castilho <rec@apache.org
> wrote:
> Hi again,
>
> is there already some simple way to dump the data contained in an OpenNLP
> model
> (e.g. POS tagger, lemmatizer or NER) file as a human readable text file so
> that
> one could show show it to somebody?
>
> Cheers,
>
> -- Richard