On Wed, Aug 3, 2011 at 4:28 AM, Jörn Kottmann <[email protected]> wrote:

>
> would change the trunk code to handle this head symbol, or maybe you should
>> give me some advise on how to do that without the need of changing the
>> current implementation.
>> I would like to ask you if adding it to OpenNLP is a good idea. If yes I
>>
>
> Would it be available for other languages also?
> Maybe most people who needs this might just use the parser.
>

It would be available for other languages. Just need to add the mark to the
corpus tags. I think it is much better to use the Chunker because it is
faster and adding the head (some people call it main).


> Anyway it should be easy to extend the ChunkerME class in a way that
> modifying
> the labels as you did is possible without modifying the OpenNLP code.
>

Yes, it is easy. I just changed the chunkAsSpans method and added a new
class called HeadedSpan. It is easy to do it as an extension, but I will not
be able to use the command line tools to trains, execute and evaluate
anymore. But I think it is the way to go if it is not common to other
languages.

Thanks
William

Reply via email to