[ 
https://issues.apache.org/jira/browse/OPENNLP-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984378#action_12984378
 ] 

William Colen commented on OPENNLP-62:
--------------------------------------

Should we substitute the method

String[] chunk(String[] toks, String tags[])

or stay with it and create a new one?

Span[] chunkAsSpans(String[] toks, String tags[])



> Chunker should output chunks also as Spans
> ------------------------------------------
>
>                 Key: OPENNLP-62
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-62
>             Project: OpenNLP
>          Issue Type: Improvement
>          Components: Chunker
>            Reporter: Jörn Kottmann
>            Assignee: William Colen
>
> The chunker currently takes a string array as input and outputs a tag for 
> each input string.
> The interface should be extended in a way that it can output an array of 
> Spans instead, where
> each Span contains the type, and the begin/end offset in the input array. 
> Like the name finder
> does. Like its done by ChunkSample.getPhrasesAsSpanList().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to