Class NLModel

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class NLModel
extends NSObject
Since:
Available in iOS 12.0 and later.
  • Constructor Details

  • Method Details

    • getConfiguration

      public NLModelConfiguration getConfiguration()
      Since:
      Available in iOS 12.0 and later.
    • predictedLabelForString

      public String predictedLabelForString​(String string)
      Since:
      Available in iOS 12.0 and later.
    • predictedLabelsForTokens

      public NSArray<NSString> predictedLabelsForTokens​(NSArray<NSString> tokens)
      Since:
      Available in iOS 12.0 and later.
    • getPredictedLabelHypothesesForString

      public NSDictionary<NSString,​NSNumber> getPredictedLabelHypothesesForString​(String string, long maximumCount)
      Since:
      Available in iOS 14.0 and later.
    • getPredictedLabelHypothesesForTokens

      public NSArray<?> getPredictedLabelHypothesesForTokens​(NSArray<NSString> tokens, long maximumCount)
      Since:
      Available in iOS 14.0 and later.
    • create

      protected static long create​(NSURL url, NSError.NSErrorPtr error)
      Since:
      Available in iOS 12.0 and later.
    • create

      protected static long create​(MLModel mlModel, NSError.NSErrorPtr error)
      Since:
      Available in iOS 12.0 and later.