emorynlp / nlp4j-old

NLP tools developed by Emory University.
Other
60 stars 19 forks source link

Static NLPDecoder.getComponent(InputStream) #4

Closed reckart closed 8 years ago

reckart commented 8 years ago

The method NLPDecoder.getComponent(InputStream) could be static. It somehow feels like doing something wrong when first having to create an NLPDecoder instance without any configuration just in order to load a serialized component:

                NLPDecoder decoder = new NLPDecoder();
                OnlineComponent<POSState> component = (OnlineComponent<POSState>) 
                        decoder.getComponent(aStream);
jdchoi77 commented 8 years ago

Done :) Will be included in the following version.