congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • scheduleAtFixedRate (Timer)
  • setScale (BigDecimal)
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • JButton (javax.swing)
  • Option (scala)
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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