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)

Reply via email to