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

Jörn Kottmann commented on OPENNLP-90:
--------------------------------------

Lets do it in a new issue, because then we should deprecate all the List 
methods in the Chunker, there are more right ?

When you deprecate the methods there should be a comment on each which explains 
what to use instead, I know there are places in OpenNLP where that is missing, 
but that is not good. 

> Method ChunkerME.topKSequences(List<String>, List<String>) fails with a class 
> cast exception.
> ---------------------------------------------------------------------------------------------
>
>                 Key: OPENNLP-90
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-90
>             Project: OpenNLP
>          Issue Type: Bug
>    Affects Versions: tools-1.5.1-incubating
>            Reporter: William Colen
>            Assignee: William Colen
>             Fix For: tools-1.5.1-incubating
>
>
> The method topKSequences(List<String> sentence, List<String> tags) fails with 
> a class cast exception because the bestSequences method expects an array of 
> String arrays in additionalContext argument, but the topKSequences was 
> setting a array of lists.

-- 
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