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

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

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

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

/**
 * Add a new annotation, which is merged from the 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, Collection<? extends Annotation> annotations) {
 getSupport().mergeWithExisting(existingAnnotation, annotations);
}
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: 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, Collection<? extends Annotation> annotations) {
 add(newAnnotation);
 mergeWithExisting(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: dstl/baleen

@Test
public void testMergeWithExistingAnnotationAnnotationArray() {
 UimaSupport support = new UimaSupport(PIPELINE, UimaSupportTest.class, history, monitor, false);
 Location l = new Location(jCas);
 l.setBegin(0);
 l.setEnd(0);
 l.addToIndexes();
 Metadata md2 = new Metadata(jCas);
 md2.setBegin(0);
 md2.setEnd(0);
 md2.addToIndexes();
 support.mergeWithExisting(l, location);
 support.mergeWithExisting(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

r.addToIndexes();
support.mergeWithExisting(p1, p2);
origin: dstl/baleen

md2.addToIndexes();
support.mergeWithExisting(locationRT2Again, location, locationRT1, locationRT2);
support.mergeWithExisting(md2, md);
origin: dstl/baleen

md2.addToIndexes();
support.mergeWithExisting(locationRT2Again, location, locationRT1, locationRT2);
support.mergeWithExisting(md2, md);
origin: dstl/baleen

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

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
  • mergeWithNew
    Add a new annotation, which is merged from the 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 plugins for WebStorm
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