public static CRFClassifier getClassifier ( InputStream in ) throws IOException , ClassCastException , ClassNotFoundException { CRFClassifier crf = new CRFClassifier ( ) ; crf . loadClassifier ( in ) ; return crf ; }
Loads a CRF classifier from an InputStream and returns it . This method does not buffer the InputStream so you should have buffered it before calling this method .