@Test public void testPearProcessing() throws Exception { LeoPearAnnotator pearAnnotator = new LeoPearAnnotator(sentDescPath.toURI()); assertNotNull(pearAnnotator); assertNotNull(pearAnnotator.getDescriptor()); StopWatch stopWatch = new StopWatch(); stopWatch.start(); AnalysisEngine analysisengine = UIMAFramework.produceAnalysisEngine(pearAnnotator.getDescriptor().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 LeoDelegate getDescriptor() throws Exception { return descriptor; }
LeoPearAnnotator implements LeoAnnotator { @Override public LeoDelegate getDescriptor() throws Exception { return descriptor; } }
LeoPearAnnotator implements LeoAnnotator { @Override public LeoDelegate getDescriptor() throws Exception { return descriptor; } LeoPearAnnotator(@Nonnull URI pearDescFile);  LeoPearAnnotator(@Nonnull LeoPearDescriptor descriptor); }
LeoPearAnnotator implements LeoAnnotator { @Override public LeoDelegate getDescriptor() throws Exception { return descriptor; } LeoPearAnnotator(@Nonnull URI pearDescFile);  LeoPearAnnotator(@Nonnull LeoPearDescriptor descriptor); @Override LeoDelegate getDescriptor(); LeoPearAnnotator setDescriptor(@Nonnull LeoPearDescriptor descriptor); String getName(); LeoPearAnnotator setName(String name); }
LeoPearAnnotator implements LeoAnnotator { @Override public LeoDelegate getDescriptor() throws Exception { return descriptor; } LeoPearAnnotator(@Nonnull URI pearDescFile);  LeoPearAnnotator(@Nonnull LeoPearDescriptor descriptor); @Override LeoDelegate getDescriptor(); LeoPearAnnotator setDescriptor(@Nonnull LeoPearDescriptor descriptor); String getName(); LeoPearAnnotator setName(String name);  }