You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@opennlp.apache.org by "Suneel Marthi (JIRA)" <ji...@apache.org> on 2017/07/17 11:59:00 UTC

[jira] [Closed] (OPENNLP-1116) Add Concatenate Stream method for Collections of streams

     [ https://issues.apache.org/jira/browse/OPENNLP-1116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Suneel Marthi closed OPENNLP-1116.
----------------------------------

> Add Concatenate Stream method for Collections of streams
> --------------------------------------------------------
>
>                 Key: OPENNLP-1116
>                 URL: https://issues.apache.org/jira/browse/OPENNLP-1116
>             Project: OpenNLP
>          Issue Type: Improvement
>          Components: Machine Learning
>    Affects Versions: 1.8.1
>            Reporter: Daniel Russ
>            Assignee: Daniel Russ
>            Priority: Trivial
>             Fix For: 1.8.2
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)