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

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

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

origin: dstl/baleen

@Test
public void testEventHasCorrectBeginAndEndValuesWhenUsingSentences()
  throws AnalysisEngineProcessException, ResourceInitializationException {
 processJCas();
 Iterator<Event> eventIterator = JCasUtil.select(jCas, Event.class).iterator();
 Event firstEvent = eventIterator.next();
 Event secondEvent = eventIterator.next();
 assertEquals("First event should have a begin index of 0", 0, firstEvent.getBegin());
 int expectedFirstEventEnd = PERSON_DOCUMENT.length() - 1;
 assertEquals(
   "First event should have an end index of " + expectedFirstEventEnd,
   expectedFirstEventEnd,
   firstEvent.getEnd());
 assertEquals(
   "Second event should have a begin index of " + PERSON_DOCUMENT.length(),
   PERSON_DOCUMENT.length(),
   secondEvent.getBegin());
 int expectedSecondEventEnd = DOCUMENT.length() - 1;
 assertEquals(
   "Second event should have an end index of " + expectedSecondEventEnd,
   expectedSecondEventEnd,
   secondEvent.getEnd());
}
origin: dstl/baleen

.append(FIELD_TOKENS, getEventTokens(e))
.append(FIELD_BEGIN, e.getBegin())
.append(FIELD_END, e.getEnd())
.append(FIELD_CONFIDENCE, e.getConfidence());
origin: dstl/baleen

@Test
public void testEventHasCorrectBeginAndEndValuesWhenUsingParagraphs()
  throws AnalysisEngineProcessException, ResourceInitializationException {
 processJCas(SimpleEventExtractor.PARAM_BLOCKS_TO_EXTRACT_FROM, "paragraphs");
 Iterator<Event> eventIterator = JCasUtil.select(jCas, Event.class).iterator();
 Event firstEvent = eventIterator.next();
 Event secondEvent = eventIterator.next();
 assertEquals("First event should have a begin index of 0", 0, firstEvent.getBegin());
 int expectedFirstEventEnd = DOCUMENT.length() - 1;
 assertEquals(
   "First event should have an end index of " + expectedFirstEventEnd,
   expectedFirstEventEnd,
   firstEvent.getEnd());
 assertEquals("Second event should have a begin index of 0", 0, secondEvent.getBegin());
 int expectedSecondEventEnd = DOCUMENT.length() - 1;
 assertEquals(
   "Second event should have an end index of " + expectedSecondEventEnd,
   expectedSecondEventEnd,
   secondEvent.getEnd());
}
uk.gov.dstl.baleen.types.semanticEventgetEnd

Popular methods of Event

  • setBegin
  • 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
  • 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
  • startActivity (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • 21 Best IntelliJ Plugins
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