/**
* Loads a classifier from the file, classpath resource, or URL specified by loadPath. If loadPath ends in
* .gz, uses a GZIPInputStream.
*/
//seg here ,ner here
public void loadClassifier(String loadPath, Properties props) throws ClassCastException, IOException, ClassNotFoundException {
InputStream is = IOUtils.getInputStreamFromURLOrClasspathOrFileSystem(loadPath);
Timing t = new Timing();
loadClassifier(is, props);
is.close();
t.done(log, "Loading classifier from " + loadPath);
}
源代码位置:ie.crf.CRFClassifier模型加载loadClassifier(String loadPath, Properties props)/** * Loads a classifier from the file, classpath resource, or URL specified by loadPath. If loadPath ends in * .gz, us