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

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

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

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

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

/**
 * 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(Collection<? extends Annotation> annotations) {
 getSupport().add(annotations);
}
origin: uk.gov.dstl.baleen/baleen-collectionreaders

 private void addMetadata(JCas jCas, Integer index, String value) {
  Metadata md = new Metadata(jCas);

  Integer colNameIndex = index;
  if (index >= contentColumn) colNameIndex--;

  if (colNameIndex >= columns.size() || columns.get(colNameIndex).trim().isEmpty()) {
   md.setKey("column" + (index + 1));
  } else {
   md.setKey(columns.get(colNameIndex).trim());
  }
  md.setValue(value);
  getSupport().add(md);
 }
}
origin: dstl/baleen

@Override
protected void doGetNext(JCas jCas) throws IOException, CollectionException {
 InputStream is = IOUtils.toInputStream(line, Charset.defaultCharset());
 extractContent(is, file.getPath() + "#" + lineNumber, jCas);
 Metadata md = new Metadata(jCas);
 md.setKey("lineNumber");
 md.setValue(lineNumber.toString());
 getSupport().add(md);
}
origin: uk.gov.dstl.baleen/baleen-collectionreaders

@Override
protected void doGetNext(JCas jCas) throws IOException, CollectionException {
 InputStream is = IOUtils.toInputStream(line, Charset.defaultCharset());
 extractor.processStream(is, file.getPath() + "#" + lineNumber, jCas);
 Metadata md = new Metadata(jCas);
 md.setKey("lineNumber");
 md.setValue(lineNumber.toString());
 getSupport().add(md);
}
origin: uk.gov.dstl.baleen/baleen-collectionreaders

private void addMetadata(JCas jCas, String key, String value) {
 Metadata md = new Metadata(jCas);
 md.setKey(key);
 md.setValue(value);
 getSupport().add(md);
}
origin: uk.gov.dstl.baleen/baleen-collectionreaders

private void addMetadata(JCas jCas, String key, String value) {
 Metadata md = new Metadata(jCas);
 md.setKey(key);
 md.setValue(value);
 getSupport().add(md);
}
origin: dstl/baleen

private void addMetadata(JCas jCas, String key, String value) {
 Metadata md = new Metadata(jCas);
 md.setKey(key);
 md.setValue(value);
 getSupport().add(md);
}
origin: dstl/baleen

private void addMetadata(JCas jCas, String key, String value) {
 Metadata md = new Metadata(jCas);
 md.setKey(key);
 md.setValue(value);
 getSupport().add(md);
}
origin: dstl/baleen

@Test
public void testAddMetadata() throws ResourceInitializationException {
 FakeBaleenContentExtractor annotator = new MockedBaleenContentExtractor();
 annotator.initialize(
   new CustomResourceSpecifier_impl(), ImmutableMap.of(Resource.PARAM_UIMA_CONTEXT, context));
 Metadata md = annotator.addMetadata(jCas, KEY, VALUE);
 verify(support).add(md);
 assertNull(annotator.addMetadata(jCas, "", VALUE));
 assertNull(annotator.addMetadata(jCas, null, VALUE));
 assertNull(annotator.addMetadata(jCas, KEY, ""));
 assertNull(annotator.addMetadata(jCas, KEY, null));
 resetMocked();
}
uk.gov.dstl.baleen.uimaUimaSupportadd

Javadoc

Add an annotation to the JCas index, notifying UimaMonitor of the fact we have done so

Popular methods of UimaSupport

  • getDocumentAnnotation
    Return the document annotation.
  • 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.
  • 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

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best IntelliJ 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