Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
1.8.1
-
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.