[
https://issues.apache.org/jira/browse/OPENNLP-90?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12986764#action_12986764
]
Jörn Kottmann commented on OPENNLP-90:
--------------------------------------
The other topKSequence method is used by the parser. We had these List methods
also in the name finder and other parts and deprecated them. We though that the
array methods should be enough and is what people use most of the time.
> 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.