congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
UimaSupport.mergeWithNew
Code IndexAdd Tabnine to your IDE (free)

How to use
mergeWithNew
method
in
uk.gov.dstl.baleen.uima.UimaSupport

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

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
 */
public void mergeWithNew(Annotation newAnnotation, Annotation... annotations) {
 mergeWithNew(newAnnotation, Arrays.asList(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
 */
public void mergeWithNew(Annotation newAnnotation, Annotation... annotations) {
 mergeWithNew(newAnnotation, Arrays.asList(annotations));
}
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, Collection<? extends Annotation> annotations) {
 getSupport().mergeWithNew(newAnnotation, 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

/**
 * 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: 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

@Test
public void testMergeWithNewAnnotationAnnotationArray() {
 UimaSupport support = new UimaSupport(PIPELINE, UimaSupportTest.class, history, monitor, false);
 Location l = new Location(jCas);
 l.setBegin(0);
 l.setEnd(0);
 Metadata md2 = new Metadata(jCas);
 md2.setBegin(0);
 md2.setEnd(0);
 support.mergeWithNew(l, location);
 support.mergeWithNew(md2, md);
 List<Location> locations = new ArrayList<>(JCasUtil.select(jCas, Location.class));
 List<Metadata> mds = new ArrayList<>(JCasUtil.select(jCas, Metadata.class));
 assertEquals(1, locations.size());
 assertEquals(l, locations.get(0));
 assertEquals(1, mds.size());
 assertEquals(md2, mds.get(0));
 assertFalse(support.getDocumentHistory(jCas).getHistory(l.getInternalId()).isEmpty());
}
origin: dstl/baleen

verify(support, only()).mergeWithNew(existingAnnotation, annotation);
resetMocked();
verify(support, only()).mergeWithNew(existingAnnotation, list);
resetMocked();
uk.gov.dstl.baleen.uimaUimaSupportmergeWithNew

Javadoc

Add a new annotation, which is merged from the old annotations, removing the old annotations.

Popular methods of UimaSupport

  • getDocumentAnnotation
    Return the document annotation.
  • add
    Add an annotation to the JCas index, notifying UimaMonitor of the fact we have done so
  • getDocumentHistory
    Get (or create) the history associated with the document.
  • <init>
    New instance.
  • getRelations
    Get relations that have a given entity as either the source or the target
  • mergeWithExisting
    Merge an existing annotation with old annotations, removing the old annotations.
  • remove
    Remove an annotation to the JCas index, notifying UimaMonitor of the fact we have done so.Relations
  • addMergeToHistory
  • addToHistory
    Adds a event to the history for this jcas document.
  • getPipelineName
    Get the name of the pipeline to which this belongs.
  • isSameTarget
  • mergeEntities
    Merge entity onto targetEntity (assuming they have the same ReferentTarget), updating relationships
  • isSameTarget,
  • mergeEntities,
  • mergeWithExistingNoCoref

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (Timer)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Top Vim plugins
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