congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Event.setBegin
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: uk.gov.dstl.baleen/baleen-uima

/**
 * @generated
 * @param jcas JCas to which this Feature Structure belongs
 * @param begin offset to the begin spot in the SofA
 * @param end offset to the end spot in the SofA
 */
public Event(JCas jcas, int begin, int end) {
 super(jcas);
 setBegin(begin);
 setEnd(end);
 readObject();
}
origin: dstl/baleen

/**
 * @generated
 * @param jcas JCas to which this Feature Structure belongs
 * @param begin offset to the begin spot in the SofA
 * @param end offset to the end spot in the SofA
 */
public Event(JCas jcas, int begin, int end) {
 super(jcas);
 setBegin(begin);
 setEnd(end);
 readObject();
}
origin: uk.gov.dstl.baleen/baleen-odin

Event e = new Event(jCas);
e.setBegin(eventMention.startOffset());
e.setEnd(eventMention.endOffset());
e.setValue(eventMention.text());
origin: dstl/baleen

Event e = new Event(jCas);
e.setBegin(eventMention.startOffset());
e.setEnd(eventMention.endOffset());
e.setValue(eventMention.text());
origin: dstl/baleen

r.setBegin(text.indexOf("went"));
r.setEnd(r.getBegin() + "went".length());
r.setValue("went");
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.setBegin(0);
e1.setEnd(4);
e1.setValue("test");
e2.setBegin(0);
e2.setEnd(4);
e2.setValue("test");
origin: dstl/baleen

event.setBegin(0);
event.setEnd(PARAGRAPH.length());
event.setEntities(new FSArray(jCas, 3));
origin: dstl/baleen

event.setBegin(0);
event.setEnd(SENTENCE.length());
event.setEntities(new FSArray(jCas, 3));
origin: dstl/baleen

event.setBegin(0);
event.setEnd(SENTENCE.length());
event.setEntities(new FSArray(jCas, 3));
origin: dstl/baleen

event.setBegin(0);
event.setEnd(10);
event.setValue("test event");
uk.gov.dstl.baleen.types.semanticEventsetBegin

Popular methods of Event

  • setEnd
  • <init>
  • 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
  • findViewById (Activity)
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Sublime Text for Python
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