public static CRFClassifier getClassifier(InputStream in) throws IOException, ClassCastException,
      ClassNotFoundException {
    CRFClassifier crf = new CRFClassifier();
    crf.loadClassifier(in);
    return crf;
  }
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.

@param in
InputStream to load classifier from
@return The CRF classifier

@throws IOException
If there are problems accessing the input stream
@throws ClassCastException
If there are problems interpreting the serialized data
@throws ClassNotFoundException
If there are problems interpreting the serialized data