TextBySectionBuilder - apache/ctakes GitHub Wiki

final public class TextBySectionBuilder

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

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

public TextBySectionBuilder addSection( final String name, final String text )

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

public JCas build() throws UIMAException

  • Returns: a jcas created from scratch and populated with the sections 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 added in this builder.
⚠️ **GitHub.com Fallback** ⚠️