MLKitEntity 擷取架構參考資料

MLKEntity


@interface MLKEntity : NSObject

從文字子字串中擷取的實體。

  • 擷取實體的類型。

    聲明

    Objective-C

    @property (nonatomic, readonly) MLKEntityExtractionEntityType _Nonnull entityType;
  • 包含特定時間的時間參照實體;如果未從文字中擷取,則會包含 nil。

    聲明

    Objective-C

    @property (nonatomic, readonly, nullable) MLKDateTimeEntity *dateTimeEntity;
  • 航班編號實體 (採用 IATA 格式);如果不是從文字中擷取,則是 nil。

    聲明

    Objective-C

    @property (nonatomic, readonly, nullable) MLKFlightNumberEntity *flightNumberEntity;
  • 國際銀行帳號 (IBAN) 實體;如果不是從文字中擷取,則為 nil。

    聲明

    Objective-C

    @property (nonatomic, readonly, nullable) MLKIBANEntity *IBANEntity;
  • 國際標準書號 (ISBN) 實體;如果不是從文字中擷取,則為 nil。

    聲明

    Objective-C

    @property (nonatomic, readonly, nullable) MLKISBNEntity *ISBNEntity;
  • 表示金額的實體;如果未從文字中擷取,則為 nil。

    聲明

    Objective-C

    @property (nonatomic, readonly, nullable) MLKMoneyEntity *moneyEntity;
  • 付款卡實體或 nil (如果未從文字中擷取)。

    聲明

    Objective-C

    @property (nonatomic, readonly, nullable) MLKPaymentCardEntity *paymentCardEntity;
  • 貨品的追蹤號碼實體;如果不是從文字中擷取,則為 nil。

    聲明

    Objective-C

    @property (nonatomic, readonly, nullable) MLKTrackingNumberEntity *trackingNumberEntity;
  • 無法使用。

    聲明

    Objective-C

    - (nonnull instancetype)init;