protected void load(String filename,Properties p) throws FileNotFoundException {
  File file=new File(filename);
  if (!file.exists())   throw new FileNotFoundException(filename);
  classifier=new CRFClassifier<CoreLabel>(p);
  try {
    classifier.loadClassifier(file,p);
  }
 catch (  ClassCastException e) {
    e.printStackTrace();
  }
catch (  IOException e) {
    e.printStackTrace();
  }
catch (  ClassNotFoundException e) {
    e.printStackTrace();
  }
}

protected void load ( String filename , Properties p ) throws FileNotFoundException { File file = new File ( filename ) ; if ( ! file . exists ( ) ) throw new FileNotFoundException ( filename ) ; classifier = new CRFClassifier < CoreLabel > ( p ) ; try { classifier . loadClassifier ( file , p ) ; } catch ( ClassCastException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; } }
load a serialized model .
