MLKitEntityExtraction Framework Reference

  • MLKEntityAnnotation objects store potential entities identified within a specific portion of text.

  • The range property indicates the location of the annotated text.

  • The entities property provides an array of potential entities found within that range.

MLKEntityAnnotation

 @interface MLKEntityAnnotation : NSObject

An object that contains the possible entities associated with a piece of the text.

  • The range of the annotation in the given text.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSRange range;
  • A list of possible entities in the given span of text.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSArray<MLKEntity *> *_Nonnull entities;