RelationsOptions

public struct RelationsOptions : Codable, Equatable

Recognizes when two entities are related and identifies the type of relation. For example, an awardedTo relation might connect the entities “Nobel Prize” and “Albert Einstein”. For more information, see Relation types. Supported languages: Arabic, English, German, Japanese, Korean, Spanish. Chinese, Dutch, French, Italian, and Portuguese custom models are also supported.

  • Enter a custom model ID to override the default model.

    Declaration

    Swift

    public var model: String?
  • Initialize a RelationsOptions with member variables.

    Declaration

    Swift

    public init(
        model: String? = nil
    )

    Parameters

    model

    Enter a custom model ID to override the default model.

    Return Value

    An initialized RelationsOptions.