@Test public void testPearTextProcessing() throws Exception { LeoPearDescriptor pearDescriptor = new LeoPearDescriptor(sentDescPath); assertNotNull(pearDescriptor); assertNotNull(pearDescriptor.getResourceSpecifier()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); AnalysisEngine analysisengine = UIMAFramework.produceAnalysisEngine(pearDescriptor.getResourceSpecifier()); stopWatch.stop(); System.out.println("Engine initialization took " + stopWatch); JCas jCas = analysisengine.newJCas(); jCas.setDocumentText("I love hamburgers and fries! JIB is the bomb!!"); stopWatch.reset(); stopWatch.start(); analysisengine.process(jCas); stopWatch.stop(); System.out.println("Processing took: " + stopWatch); assertTrue(jCas.getAnnotationIndex().size() > 0); }
@Override public ResourceSpecifier getResourceSpecifier() { return resourceSpecifier; }
LeoPearDescriptor implements LeoDelegate { @Override public ResourceSpecifier getResourceSpecifier() { return resourceSpecifier; } }
LeoPearDescriptor implements LeoDelegate { @Override public ResourceSpecifier getResourceSpecifier() { return resourceSpecifier; } LeoPearDescriptor(String pearDescPath);  LeoPearDescriptor(File pearDescFile);  LeoPearDescriptor(URI pearDescFile); }
LeoPearDescriptor implements LeoDelegate { @Override public ResourceSpecifier getResourceSpecifier() { return resourceSpecifier; } LeoPearDescriptor(String pearDescPath);  LeoPearDescriptor(File pearDescFile);  LeoPearDescriptor(URI pearDescFile); @Override ResourceSpecifier getResourceSpecifier(); @Override LeoPearDescriptor setDescriptorLocator(URI descriptorLocator); @Override String getDescriptorLocator(); @Override String getName(); @Override LeoPearDescriptor setName(String name); @Override boolean isDeleteOnExit(); @Override LeoPearDescriptor setIsDeleteOnExit(boolean deleteOnExit); @Override void toXML(); @Override void toXML(String filename); @Override LeoPearDescriptor analysisEngineSection(TransformerHandler thd, boolean isTopDescriptor); }
LeoPearDescriptor implements LeoDelegate { @Override public ResourceSpecifier getResourceSpecifier() { return resourceSpecifier; } LeoPearDescriptor(String pearDescPath);  LeoPearDescriptor(File pearDescFile);  LeoPearDescriptor(URI pearDescFile); @Override ResourceSpecifier getResourceSpecifier(); @Override LeoPearDescriptor setDescriptorLocator(URI descriptorLocator); @Override String getDescriptorLocator(); @Override String getName(); @Override LeoPearDescriptor setName(String name); @Override boolean isDeleteOnExit(); @Override LeoPearDescriptor setIsDeleteOnExit(boolean deleteOnExit); @Override void toXML(); @Override void toXML(String filename); @Override LeoPearDescriptor analysisEngineSection(TransformerHandler thd, boolean isTopDescriptor);  }