DocStructure

public struct DocStructure : Codable, Equatable

The structure of the input document.

  • An array containing one object per section or subsection identified in the input document.

    Declaration

    Swift

    public var sectionTitles: [SectionTitles]?
  • An array containing one object per section or subsection, in parallel with the section_titles array, that details the leading sentences in the corresponding section or subsection.

    Declaration

    Swift

    public var leadingSentences: [LeadingSentence]?
  • An array containing one object per paragraph, in parallel with the section_titles and leading_sentences arrays.

    Declaration

    Swift

    public var paragraphs: [Paragraphs]?