MLKitEntityExtraction Framework Reference

MLKEntity


@interface MLKEntity : NSObject

An entity extracted from a substring of text.

  • The type of the extracted entity.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MLKEntityExtractionEntityType _Nonnull entityType;
  • The time reference entity containing a specific time or nil if not extracted from the text.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MLKDateTimeEntity *dateTimeEntity;
  • The flight number entity in IATA format or nil if not extracted from the text.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MLKFlightNumberEntity *flightNumberEntity;
  • The International Bank Account Number (IBAN) entity or nil if not extracted from the text.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MLKIBANEntity *IBANEntity;
  • The International Standard Book Number (ISBN) entity or nil if not extracted from the text.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MLKISBNEntity *ISBNEntity;
  • The entity representing an amount of money or nil if not extracted from the text.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MLKMoneyEntity *moneyEntity;
  • The payment card entity or nil if not extracted from the text.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MLKPaymentCardEntity *paymentCardEntity;
  • The tracking number entity for a shipment or nil if not extracted from the text.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) MLKTrackingNumberEntity *trackingNumberEntity;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;