Hi - I am able to construct a POSDictionary but have trouble figuring out
how to supply it to a POSTaggerME in tagging. The documentation is not
clear. Any advice?
Thanks,
Fan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I figured out. A custom tag dictionary, if supplied at training, will be built in as part of the model (the codes I put together are pasted below).
However, one thing to note is that the dev manual also describes a command-line training approach with POSTaggerTrainer, which according to the API doc is deprecated and appears to generate model files that cannot be loaded at run time. This probably deserves some verification and update as needed.
OpenNlp has moved to Apache: http://opennlp.apache.org/
You can direct your questions and comments there.
--Thilo
On 10/09/2013 08:58 PM, Jung-wei Fan wrote:
I figured out. A custom tag dictionary, if supplied at training, will be
built in as part of the model (the codes I put together are pasted below).
However, one thing to note is that the dev manual also describes a
command-line training approach with POSTaggerTrainer, which according to
the API doc is deprecated and appears to generate model files that
cannot be loaded at run time. This probably deserves some verification
and update as needed.
Hi - I am able to construct a POSDictionary but have trouble figuring out
how to supply it to a POSTaggerME in tagging. The documentation is not
clear. Any advice?
Thanks,
Fan
I figured out. A custom tag dictionary, if supplied at training, will be built in as part of the model (the codes I put together are pasted below).
However, one thing to note is that the dev manual also describes a command-line training approach with POSTaggerTrainer, which according to the API doc is deprecated and appears to generate model files that cannot be loaded at run time. This probably deserves some verification and update as needed.
OpenNlp has moved to Apache: http://opennlp.apache.org/
You can direct your questions and comments there.
--Thilo
On 10/09/2013 08:58 PM, Jung-wei Fan wrote: