You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Jeff Zemerick (JIRA)" <ji...@apache.org> on 2017/12/20 12:40:01 UTC
[jira] [Closed] (OPENNLP-1167) WordVector toArray methods should be
removed
[ https://issues.apache.org/jira/browse/OPENNLP-1167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Zemerick closed OPENNLP-1167.
----------------------------------
> WordVector toArray methods should be removed
> --------------------------------------------
>
> Key: OPENNLP-1167
> URL: https://issues.apache.org/jira/browse/OPENNLP-1167
> Project: OpenNLP
> Issue Type: Task
> Components: word vectors
> Reporter: Tommaso Teofili
> Assignee: Tommaso Teofili
> Fix For: 1.8.4
>
>
> {{WordVector#toDoubleArray}} and {{WordVector#toFloatArray}} always require a copy, have size limitation and therefore should be probably removed.
> Additionally we should think whether it makes sense to keep {{FloatArrayVector#toDoubleBuffer}} and {{DoubleArrayVector#toFloatBuffer}} which also require a copy. The alternative is to throw an {{UnsupportedOperationException}} in such cases.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)