Modifier and Type | Method and Description |
---|---|
static edu.jhu.hlt.concrete.Section |
createSingleSection(edu.jhu.hlt.concrete.Communication c,
String sectionKind) |
static edu.jhu.hlt.concrete.Section |
createSingleSection(String text,
String sectionKind,
edu.jhu.hlt.concrete.UUID sectionUuid)
Create a single
Section based on some text, with the kind set to
sectionKind. |
static void |
main(String... args) |
public static final edu.jhu.hlt.concrete.Section createSingleSection(String text, String sectionKind, edu.jhu.hlt.concrete.UUID sectionUuid)
Section
based on some text, with the kind set to
sectionKind.text
- the String
upon which to create the Section objectsectionKind
- the kind of the SectionSection
with one TextSpan
.public static final edu.jhu.hlt.concrete.Section createSingleSection(edu.jhu.hlt.concrete.Communication c, String sectionKind) throws ConcreteException
c
- a Communication
to annotate. Must have non-null, non-empty text.sectionKind
- the kind of Section
to produce (e.g., 'other')Section
with a single TextSpan
set to (0, comm.getText().length())ConcreteException
- if unset or empty Communication textpublic static void main(String... args)
Copyright © 2016 Johns Hopkins University HLTCOE. All rights reserved.