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

How to use
addToIndexes
method
in
uk.gov.dstl.baleen.types.semantic.Event

Best Java code snippets using uk.gov.dstl.baleen.types.semantic.Event.addToIndexes (Showing top 10 results out of 315)

origin: dstl/baleen

e.addToIndexes();
return Optional.of(e);
origin: uk.gov.dstl.baleen/baleen-odin

e.addToIndexes();
return Optional.of(e);
origin: dstl/baleen

r.setArguments(0, "see");
r.setArguments(1, "Big Ben");
r.addToIndexes();
origin: dstl/baleen

@Test
public void testEvents() throws UIMAException {
 final Location t = new Location(jCas);
 t.setValue("target");
 final Event e = new Event(jCas);
 e.setArguments(new StringArray(jCas, 1));
 e.setArguments(0, "test");
 e.setEntities(new FSArray(jCas, 1));
 e.setEntities(0, t);
 e.addToIndexes();
 SimplePipeline.runPipeline(jCas, AnalysisEngineFactory.createEngine(Events.class));
}
origin: dstl/baleen

@Before
public void setup() throws IOException {
 jCas.setDocumentText(TEXT);
 tempDirectory = Files.createTempDirectory(AllAnnotationsJsonConsumerTest.class.getSimpleName());
 tempDirectory.toFile().deleteOnExit();
 DocumentAnnotation documentAnnotation = (DocumentAnnotation) jCas.getDocumentAnnotationFs();
 documentAnnotation.setSourceUri(SOURCEURI);
 Paragraph paragraph1 = new Paragraph(jCas);
 paragraph1.setBegin(0);
 paragraph1.setDepth(1);
 paragraph1.setEnd(52);
 paragraph1.addToIndexes();
 Person entity1 = new Person(jCas);
 entity1.setBegin(70);
 entity1.setEnd(73);
 entity1.setValue("cat");
 entity1.addToIndexes();
 Event event = new Event(jCas);
 event.setBegin(53);
 event.setEnd(105);
 event.setArguments(new StringArray(jCas, 2));
 event.setArguments(0, "cat");
 event.setArguments(1, "dog");
 event.setEntities(new FSArray(jCas, 1));
 event.setEntities(0, entity1);
 event.addToIndexes();
}
origin: dstl/baleen

e1.setEntities(0, p1);
e1.setEntities(1, p2);
e1.addToIndexes(jCas);
e2.setEntities(0, p1);
e2.setEntities(1, p2);
e2.addToIndexes(jCas);
origin: dstl/baleen

event.setTokens(0, new WordToken(jCas, 6, 10));
event.setReferent(new ReferenceTarget(jCas));
event.addToIndexes();
origin: dstl/baleen

event.setTokens(1, new WordToken(jCas, 25, 28));
event.setReferent(new ReferenceTarget(jCas));
event.addToIndexes();
origin: dstl/baleen

event.setTokens(0, new WordToken(jCas, 6, 10));
event.setReferent(new ReferenceTarget(jCas));
event.addToIndexes();
origin: dstl/baleen

event.setArguments(0, "argument");
event.setArguments(1, "Other");
event.addToIndexes(jCas);
uk.gov.dstl.baleen.types.semanticEventaddToIndexes

Popular methods of Event

  • setBegin
  • setEnd
  • <init>
  • getBegin
  • setArguments
    setter for arguments - sets Additional text information, such as subject/object, in addition to the
  • setEntities
    setter for entities - sets The entities which are involved / related / associated with the event.
  • setEventType
    setter for eventType - sets The event type which classifies the event.For example Currently based on
  • setValue
    setter for value - sets A textual representation of the event, typically this may be one or more ver
  • getEnd
  • getEntities
    indexed getter for entities - gets an indexed value - The entities which are involved / related / as
  • getExternalId
  • getValue
    getter for value - gets A textual representation of the event, typically this may be one or more ver
  • getExternalId,
  • getValue,
  • setTokens,
  • getArguments,
  • getConfidence,
  • getEventType,
  • getTokens,
  • readObject,
  • setReferent

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • scheduleAtFixedRate (Timer)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • CodeWhisperer alternatives
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