Tabnine Logo
uk.gov.dstl.baleen.uima
Code IndexAdd Tabnine to your IDE (free)

How to use uk.gov.dstl.baleen.uima

Best Java code snippets using uk.gov.dstl.baleen.uima (Showing top 20 results out of 315)

origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void process(final JCas aJCas) throws AnalysisEngineProcessException {
 monitor.startFunction("execute");
 execute(new JobSettings(aJCas));
 monitor.finishFunction("execute");
 monitor.persistCounts();
}
origin: uk.gov.dstl.baleen/baleen-uima

@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();
}
origin: uk.gov.dstl.baleen/baleen-uima

/**
 * 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);
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public void destroy() {
 monitor.startFunction("destroy");
 doDestroy();
 monitor.finishFunction("destroy");
}
origin: dstl/baleen

@Override
public final Progress[] getProgress() {
 monitor.startFunction("getProgress");
 Progress[] ret = doGetProgress();
 monitor.finishFunction("getProgress");
 return ret;
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void destroy() {
 monitor.startFunction("destroy");
 doDestroy();
 monitor.finishFunction("destroy");
}
origin: uk.gov.dstl.baleen/baleen-uima

@Override
public final void close() throws IOException {
 monitor.startFunction("close");
 doClose();
 monitor.finishFunction("close");
}
origin: uk.gov.dstl.baleen/baleen-uima

/**
 * 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);
}
origin: uk.gov.dstl.baleen/baleen-uima

/**
 * 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);
}
origin: uk.gov.dstl.baleen/baleen-uima

/**
 * 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;
}
origin: uk.gov.dstl.baleen/baleen-uima

/**
 * 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);
}
origin: dstl/baleen

/**
 * 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);
}
origin: dstl/baleen

@Override
public final void process(final JCas aJCas) throws AnalysisEngineProcessException {
 monitor.startFunction("execute");
 execute(new JobSettings(aJCas));
 monitor.finishFunction("execute");
 monitor.persistCounts();
}
origin: dstl/baleen

@Override
public void destroy() {
 monitor.startFunction("destroy");
 doDestroy();
 monitor.finishFunction("destroy");
}
origin: dstl/baleen

/**
 * 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);
}
origin: dstl/baleen

/**
 * 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);
}
origin: dstl/baleen

/**
 * 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);
}
origin: uk.gov.dstl.baleen/baleen-uima

/**
 * 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);
}
origin: dstl/baleen

/**
 * 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);
}
origin: dstl/baleen

/**
 * 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);
}
uk.gov.dstl.baleen.uima

Most used classes

  • UimaMonitor
    Provides metrics and logging for Baleen UIMA components, such as uk.gov.dstl.baleen.uima.BaleenAnnot
  • UimaSupport
    A support class for Uima within Baleen.This is used to keep common functions for manipulating Baleen
  • ReferentUtils
    Helper for working with reference targets.
  • UimaTypesUtils
    Provides utility functions to help deal with Uima specific types.
  • TypeSystemSingleton
    Class to hold a singleton instance of the TypeSystem, to save having to generate it repeatedly.As th
  • JCasSingleton,
  • StructureHierarchy,
  • BaleenAnnotator,
  • BaleenConsumer,
  • FeatureUtils,
  • JCasMetadata,
  • SelectorPath,
  • StructureUtil,
  • Node,
  • BaleenCollectionReader,
  • BaleenResource,
  • BaleenTask,
  • Offset,
  • UimaUtils
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now