MLKitEntityExtraction 框架参考
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
-
@枚举 DateTimeGranularity
从文本中提取的时间戳的精确度。
例如,“明天”的粒度为 .day
,而“12:51”的粒度为 .minute
。
声明
Swift
enum DateTimeGranularity : Int
-
@enum PaymentCardNetwork
可以检测到的受支持支付卡网络。
声明
Swift
enum PaymentCardNetwork : Int
-
@enum ParcelTrackingCarrier
可检测到的受支持包裹跟踪运输公司。
声明
Swift
enum ParcelTrackingCarrier : Int
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],["The core content describes three globally available enumerations: `DateTimeGranularity`, `PaymentCardNetwork`, and `ParcelTrackingCarrier`. `DateTimeGranularity` defines the precision of extracted timestamps, such as `.day` or `.minute`. `PaymentCardNetwork` lists the detectable payment card networks. `ParcelTrackingCarrier` specifies the supported parcel tracking carriers. Each enumeration is defined as an integer type in Swift. These enums help classify extracted information during text processing.\n"],null,[]]