Skip to content

TextBySentenceBuilder

Sean Finan edited this page Feb 9, 2026 · 1 revision

final public class TextBySentenceBuilder

Builds a new cas or populates an existing jcas with sections, their names and sentence text.

  • Author: SPF , chip-nlp
  • Version: %I%
  • Since: 9/22/2019

public TextBySentenceBuilder startSection( final String name )

  • Parameters:
    • name name of the section. This will be placed in the text and used to create an id: name_#
  • Returns: this builder.

public TextBySentenceBuilder addSentence( final String text )

Places the given sentence text in the current section.

  • Parameters:
    • text text content of the sentence.
  • Returns: this builder.

public JCas build() throws UIMAException

  • Returns: a jcas created from scratch and populated with the sections and sentences added in this builder.
  • Exceptions:
    • UIMAException is the fresh jcas cannot be created.

public JCas populate( final JCas jCas )

  • Parameters:
    • jCas ye olde ...
  • Returns: the given jcas populated with the sections and sentences added in this builder.

static private final class SentenceSection

internal storage device.

Apache cTAKES

ctakes-core API

Python API

ctakes-core

patient
    AbstractPatientConsumer
    AbstractPatientFileWriter
    PatientNoteCollector
    PatientNoteStore
    PatientViewUtil
pipeline
    PipeBitLocator
    PipelineBuilder
    PiperFileReader
    PiperFileRunner
resource
    FileLocator
util
    CalendarUtil
    MutableUimaContext
    NumberedSuffixComparator
    Pair
    RelationArgumentUtil
    StringUtil
     annotation
         ConceptBuilder
         EssentialAnnotationUtil
         IdentifiedAnnotationBuilder
         IdentifiedAnnotationUtil
         OntologyConceptUtil
         SemanticGroup
         SemanticTui
     doc
         DocIdUtil
         JCasBuilder
         TextBySectionBuilder
         TextBySentenceBuilder
     log
         DotLogger
         FinishedLogger
     regex
         RegexSpanFinder
         TimeoutMatcher
     textspan
         DefaultAspanComparator
         DefaultTextSpanComparator
         DefaultTextSpan
         TextSpan



General

Clone this wiki locally