On 11/17/11 7:08 PM, Boris Galitsky wrote:
Yes, I will try
  opennlp.tools.parser.ChunkSampleStream
and meanwhile the question is: what is wrong with using
opennlp.tools.chunker ?

You are doing it then twice. The chunk information is already present inside
the parse tree. So if you have a Parse object already, you should extract the
chunk information from it instead of running the chunker again.

It is also harder to use, because a user then needs to provide you with a Parse object and a chunker instance. For the same reason it is harder to test as well. It will be slower because chunking needs to be done twice, and I guess there are
a couple of more reasons why this is not the preferred solution.

Let me know if you need help.

Jörn

Reply via email to