本文整理汇总了Java中org.apache.uima.resource.ResourceInitializationException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java ResourceInitializationException.printStackTrace方法的具体用法?Java ResourceInitializationException.printStackTrace怎么用?Java ResourceInitializationException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.uima.resource.ResourceInitializationException
的用法示例。
在下文中一共展示了ResourceInitializationException.printStackTrace方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: CrfClassifier
import org.apache.uima.resource.ResourceInitializationException; //导入方法依赖的package包/类
/**
* Constructor, creates an AnalysisEngine with a CRF classifier.
*/
public CrfClassifier(String configurationFile) {
try {
initialise(configurationFile);
classifier = createEngine(AspectAnnotator.class,
GenericJarClassifierFactory.PARAM_CLASSIFIER_JAR_PATH,
crfModelFolder + "model.jar");
} catch (ResourceInitializationException e) {
e.printStackTrace();
}
}
示例2: CrfClassifier
import org.apache.uima.resource.ResourceInitializationException; //导入方法依赖的package包/类
/**
* Constructor, creates an AnalysisEngine with a CRF classifier.
* @param modelDirectory the directory where the model is located
*/
public CrfClassifier(String modelDirectory) {
try {
classifier = AnalysisEngineFactory.createEngine(AspectAnnotator.class,
GenericJarClassifierFactory.PARAM_CLASSIFIER_JAR_PATH,
modelDirectory + "model.jar");
} catch (ResourceInitializationException e) {
e.printStackTrace();
}
}