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

Add Concatenate Stream method for Collections of streams

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: 1.8.2
    • Component/s: Machine Learning
    • Labels:
      None

      Description

      Minor change to opennlp.tools.util.ObjectStreamUtls. First change the signature of the createObjectStream(final ObjectStream<T>... streams) to concatenateObjectStream(final ObjectStream<T>... streams), and add a method concatenateObjectStream(final Collection<ObjectStream<T>> streams)

      The reason behind this is that I often pull data from multiple files, whereas it is possible to create an array of ObjectStreams, it is easier to work with Lists. Also, the name of the method is clearer. It concatenates a list/array of ObjectStreams as opposed the the createObjectStream(final Collection<T> collection) which makes an obectstream of items in the collection.

        Attachments

          Activity

            People

            • Assignee:
              druss Daniel Russ
              Reporter:
              druss@mail.nih.gov Daniel Russ
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: