SyntaxOptions

public struct SyntaxOptions : Codable, Equatable

Returns tokens and sentences from the input text.

  • Tokenization options.

    Declaration

    Swift

    public var tokens: SyntaxOptionsTokens?
  • Set this to true to return sentence information.

    Declaration

    Swift

    public var sentences: Bool?
  • Initialize a SyntaxOptions with member variables.

    Declaration

    Swift

    public init(
        tokens: SyntaxOptionsTokens? = nil,
        sentences: Bool? = nil
    )

    Parameters

    tokens

    Tokenization options.

    sentences

    Set this to true to return sentence information.

    Return Value

    An initialized SyntaxOptions.