Closed bethard closed 9 years ago
Comment #1 originally posted by ClearTK on 2009-10-27T16:41:59.000Z:
ViterbiClassifier wouldn't have to write a temp file if it took an InputStream. However, this wouldn't solve the LIBSVMClassifier problem - it still needs to write a temp file because LIBSVM can only read from an actual path. So as long as another classifier is having to write temp files, I don't think there's a good reason to change this.
Original issue 93 created by ClearTK on 2009-04-30T13:59:54.000Z:
right now the constructors for the classifiers require a jar file. This is not ideal for the viterbi classifier which has a classifier model inside its jar file that it needs to use to instantiate the delegated classifier. This means that the viterbi classifier has to extract the jar file before it can instantiate the delegated classifier. It would be better if we re-factored the constructors to take an input stream such as the JarInputStream. Fixing this will require changes to ClassifierFactory and probably ClassifierManifest.