CollectionItem

public struct CollectionItem : Codable, Equatable

Response from the classifier for a phrase in a collection.

  • The submitted phrase. The maximum length is 2048 characters.

    Declaration

    Swift

    public var text: String?
  • The class with the highest confidence.

    Declaration

    Swift

    public var topClass: String?
  • An array of up to ten class-confidence pairs sorted in descending order of confidence.

    Declaration

    Swift

    public var classes: [ClassifiedClass]?