@Override public final void process(final JCas aJCas) throws AnalysisEngineProcessException { monitor.startFunction("execute"); execute(new JobSettings(aJCas)); monitor.finishFunction("execute"); monitor.persistCounts(); }
@Override public final void processStream(InputStream stream, String source, JCas jCas) throws IOException { monitor.startFunction("process"); doProcessStream(stream, source, jCas); monitor.finishFunction("process"); monitor.persistCounts(); }
/** * Merge an existing annotation with old annotations, removing the old annotations. * * @param existingAnnotation The annotation which exists and is to be left in the document * (merged) * @param annotations Annotation(s) which have been merged wiht existingAnnotation and then * removed */ protected void mergeWithExisting(Annotation existingAnnotation, Annotation... annotations) { getSupport().mergeWithExisting(existingAnnotation, annotations); }
@Override public void destroy() { monitor.startFunction("destroy"); doDestroy(); monitor.finishFunction("destroy"); }
@Override public final Progress[] getProgress() { monitor.startFunction("getProgress"); Progress[] ret = doGetProgress(); monitor.finishFunction("getProgress"); return ret; }
@Override public final void destroy() { monitor.startFunction("destroy"); doDestroy(); monitor.finishFunction("destroy"); }
@Override public final void close() throws IOException { monitor.startFunction("close"); doClose(); monitor.finishFunction("close"); }
/** * Add an annotation to the JCas index, notifying UimaMonitor of the fact we have done so * * @param annot Annotation(s) to add */ protected void addToJCasIndex(Annotation... annotations) { getSupport().add(annotations); }
/** * Add an annotation to the JCas index, notifying UimaMonitor of the fact we have done so * * @param annotations Annotation(s) to add */ protected void addToJCasIndex(Annotation... annotations) { getSupport().add(annotations); }
/** * Override of the UIMA hasNext() method with logic to continuously check for new documents until * one is found. This prevents the collection reader from exiting (unless asked to), and so * creates a persistent collection reader and pipeline. */ @Override public final boolean hasNext() throws IOException, CollectionException { monitor.startFunctionTrace("hasNext"); boolean next = doHasNext(); monitor.finishFunctionTrace("hasNext"); return next; }
/** * Add a new annotation, which is merged from the old annotations, removing the old annotations. * * @param newAnnotation The annotation which is to be added to the document as the merged result * of the old annotations * @param annotations Annotation(s) which have been merged and should be removed */ protected void mergeWithNew(Annotation newAnnotation, Annotation... annotations) { getSupport().mergeWithNew(newAnnotation, annotations); }
/** * Remove an annotation to the JCas index, notifying UimaMonitor of the fact we have done so * * @param annot Annotation(s) to remove */ protected void removeFromJCasIndex(Annotation... annotations) { getSupport().remove(annotations); }
@Override public final void process(final JCas aJCas) throws AnalysisEngineProcessException { monitor.startFunction("execute"); execute(new JobSettings(aJCas)); monitor.finishFunction("execute"); monitor.persistCounts(); }
@Override public void destroy() { monitor.startFunction("destroy"); doDestroy(); monitor.finishFunction("destroy"); }
/** * Add an annotation to the JCas index, notifying UimaMonitor of the fact we have done so * * @param annot Annotation(s) to add */ protected void addToJCasIndex(Collection<? extends Annotation> annotations) { getSupport().add(annotations); }
/** * Add a new annotation, which is merged from the old annotations, removing the old annotations. * * @param newAnnotation The annotation which is to be added to the document as the merged result * of the old annotations * @param annotations Annotation(s) which have been merged and should be removed */ protected void mergeWithNew( Annotation newAnnotation, Collection<? extends Annotation> annotations) { getSupport().mergeWithNew(newAnnotation, annotations); }
/** * Merge an existing annotation with old annotations, removing the old annotations. * * @param existingAnnotation The annotation which exists and is to be left in the document * (merged) * @param annotations Annotation(s) which have been merged wiht existingAnnotation and then * removed */ protected void mergeWithExisting(Annotation existingAnnotation, Annotation... annotations) { getSupport().mergeWithExisting(existingAnnotation, annotations); }
/** * Remove an annotation to the JCas index, notifying UimaMonitor of the fact we have done so * * @param annot Annotation(s) to remove */ protected void removeFromJCasIndex(Collection<? extends Annotation> annotations) { getSupport().remove(annotations); }
/** * Add an annotation to the JCas index, notifying UimaMonitor of the fact we have done so * * @param annot Annotation(s) to add */ protected void addToJCasIndex(Annotation... annotations) { getSupport().add(annotations); }
/** * Add a new annotation, which is merged from the old annotations, removing the old annotations. * * @param newAnnotation The annotation which is to be added to the document as the merged result * of the old annotations * @param annotations Annotation(s) which have been merged and should be removed */ protected void mergeWithNew(Annotation newAnnotation, Annotation... annotations) { getSupport().mergeWithNew(newAnnotation, annotations); }