Uploaded image for project: 'OpenNLP'
  1. OpenNLP
  2. OPENNLP-1167

WordVector toArray methods should be removed

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.4
    • word vectors
    • None

    Description

      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.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            teofili Tommaso Teofili
            teofili Tommaso Teofili
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment