You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2017/12/14 13:52:00 UTC
[jira] [Created] (OPENNLP-1167) WordVector toArray methods should
be removed
Tommaso Teofili created OPENNLP-1167:
----------------------------------------
Summary: 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
{{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)