/** Static method for getting an NERClassifierCombiner from a string path. */ public static NERClassifierCombiner getClassifier(String loadPath, Properties props) throws IOException, ClassNotFoundException, ClassCastException { ObjectInputStream ois = IOUtils.readStreamFromString(loadPath); NERClassifierCombiner returnNCC = getClassifier(ois, props); IOUtils.closeIgnoringExceptions(ois); return returnNCC; }
ncc = getClassifier(loadPath,props); } else {
/** Static method for getting an NERClassifierCombiner from a string path. */ public static NERClassifierCombiner getClassifier(String loadPath, Properties props) throws IOException, ClassNotFoundException, ClassCastException { ObjectInputStream ois = IOUtils.readStreamFromString(loadPath); NERClassifierCombiner returnNCC = getClassifier(ois, props); IOUtils.closeIgnoringExceptions(ois); return returnNCC; }
ncc = getClassifier(loadPath,props); } else {