Codota Logo
Event.<init>
Code IndexAdd Codota to your IDE (free)

How to use
uk.gov.dstl.baleen.types.semantic.Event
constructor

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: dstl/baleen

if (mention instanceof EventMention) {
 EventMention eventMention = (EventMention) mention;
 Event e = new Event(jCas);
origin: uk.gov.dstl.baleen/baleen-odin

if (mention instanceof EventMention) {
 EventMention eventMention = (EventMention) mention;
 Event e = new Event(jCas);
origin: dstl/baleen

l.addToIndexes();
final Event r = new Event(jCas);
r.setBegin(text.indexOf("went"));
r.setEnd(r.getBegin() + "went".length());
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

Person p2 = Annotations.createPerson(jCas, 0, 4, "test");
Event e1 = new Event(jCas);
e1.setBegin(0);
e1.setEnd(4);
e1.addToIndexes(jCas);
Event e2 = new Event(jCas);
e2.setBegin(0);
e2.setEnd(4);
origin: dstl/baleen

t.addToIndexes();
Event event = new Event(jCas);
event.setBegin(0);
event.setEnd(SENTENCE.length());
origin: dstl/baleen

t.addToIndexes();
Event event = new Event(jCas);
event.setBegin(0);
event.setEnd(PARAGRAPH.length());
origin: dstl/baleen

t.addToIndexes();
Event event = new Event(jCas);
event.setBegin(0);
event.setEnd(SENTENCE.length());
origin: dstl/baleen

lives.addToIndexes(jCas);
final Event event = new Event(jCas);
event.setBegin(0);
event.setEnd(10);
uk.gov.dstl.baleen.types.semanticEvent<init>

Javadoc

Never called. Disable default constructor

Popular methods of Event

  • setBegin
  • setEnd
  • addToIndexes
  • 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

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • getSystemService (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • PrintWriter (java.io)
    Prints formatted representations of objects to a text-output stream. This class implements all of th
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Reference (javax.naming)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now