Class NLEmbedding

  • All Implemented Interfaces:
    NSObject

    public class NLEmbedding
    extends NSObject
    • Constructor Detail

      • NLEmbedding

        protected NLEmbedding​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NLEmbedding allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • containsString

        public boolean containsString​(@NotNull
                                      @NotNull java.lang.String string)
        API-Since: 13.0
      • currentRevisionForLanguage

        public static long currentRevisionForLanguage​(@NotNull
                                                      @NotNull java.lang.String language)
        API-Since: 13.0
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • dimension

        public long dimension()
        API-Since: 13.0
      • distanceBetweenStringAndStringDistanceType

        public double distanceBetweenStringAndStringDistanceType​(@NotNull
                                                                 @NotNull java.lang.String firstString,
                                                                 @NotNull
                                                                 @NotNull java.lang.String secondString,
                                                                 long distanceType)
        API-Since: 13.0
      • embeddingWithContentsOfURLError

        public static NLEmbedding embeddingWithContentsOfURLError​(@NotNull
                                                                  @NotNull NSURL url,
                                                                  @Nullable
                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • getVectorForString

        public boolean getVectorForString​(@NotNull
                                          @NotNull org.moe.natj.general.ptr.FloatPtr vector,
                                          @NotNull
                                          @NotNull java.lang.String string)
        API-Since: 13.0
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • language

        @Nullable
        public @Nullable java.lang.String language()
        API-Since: 13.0
      • neighborsForStringMaximumCountDistanceType

        @Nullable
        public @Nullable NSArray<java.lang.String> neighborsForStringMaximumCountDistanceType​(@NotNull
                                                                                              @NotNull java.lang.String string,
                                                                                              long maxCount,
                                                                                              long distanceType)
        API-Since: 13.0
      • neighborsForStringMaximumCountMaximumDistanceDistanceType

        @Nullable
        public @Nullable NSArray<java.lang.String> neighborsForStringMaximumCountMaximumDistanceDistanceType​(@NotNull
                                                                                                             @NotNull java.lang.String string,
                                                                                                             long maxCount,
                                                                                                             double maxDistance,
                                                                                                             long distanceType)
        API-Since: 13.0
      • neighborsForVectorMaximumCountDistanceType

        @NotNull
        public @NotNull NSArray<java.lang.String> neighborsForVectorMaximumCountDistanceType​(@NotNull
                                                                                             @NotNull NSArray<? extends NSNumber> vector,
                                                                                             long maxCount,
                                                                                             long distanceType)
        API-Since: 13.0
      • neighborsForVectorMaximumCountMaximumDistanceDistanceType

        @NotNull
        public @NotNull NSArray<java.lang.String> neighborsForVectorMaximumCountMaximumDistanceDistanceType​(@NotNull
                                                                                                            @NotNull NSArray<? extends NSNumber> vector,
                                                                                                            long maxCount,
                                                                                                            double maxDistance,
                                                                                                            long distanceType)
        API-Since: 13.0
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • revision

        public long revision()
        API-Since: 13.0
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportedRevisionsForLanguage

        @NotNull
        public static @NotNull NSIndexSet supportedRevisionsForLanguage​(@NotNull
                                                                        @NotNull java.lang.String language)
        API-Since: 13.0
      • vectorForString

        @Nullable
        public @Nullable NSArray<? extends NSNumber> vectorForString​(@NotNull
                                                                     @NotNull java.lang.String string)
        API-Since: 13.0
      • version_static

        public static long version_static()
      • vocabularySize

        public long vocabularySize()
        API-Since: 13.0
      • wordEmbeddingForLanguage

        @Nullable
        public static @Nullable NLEmbedding wordEmbeddingForLanguage​(@NotNull
                                                                     @NotNull java.lang.String language)
        API-Since: 13.0
      • wordEmbeddingForLanguageRevision

        @Nullable
        public static @Nullable NLEmbedding wordEmbeddingForLanguageRevision​(@NotNull
                                                                             @NotNull java.lang.String language,
                                                                             long revision)
        API-Since: 13.0
      • writeEmbeddingForDictionaryLanguageRevisionToURLError

        public static boolean writeEmbeddingForDictionaryLanguageRevisionToURLError​(@NotNull
                                                                                    @NotNull NSDictionary<java.lang.String,​? extends NSArray<? extends NSNumber>> dictionary,
                                                                                    @Nullable
                                                                                    @Nullable java.lang.String language,
                                                                                    long revision,
                                                                                    @NotNull
                                                                                    @NotNull NSURL url,
                                                                                    @Nullable
                                                                                    @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
        API-Since: 13.0
      • currentSentenceEmbeddingRevisionForLanguage

        public static long currentSentenceEmbeddingRevisionForLanguage​(@NotNull
                                                                       @NotNull java.lang.String language)
        API-Since: 14.0
      • sentenceEmbeddingForLanguage

        @Nullable
        public static @Nullable NLEmbedding sentenceEmbeddingForLanguage​(@NotNull
                                                                         @NotNull java.lang.String language)
        API-Since: 14.0
      • sentenceEmbeddingForLanguageRevision

        @Nullable
        public static @Nullable NLEmbedding sentenceEmbeddingForLanguageRevision​(@NotNull
                                                                                 @NotNull java.lang.String language,
                                                                                 long revision)
        API-Since: 14.0
      • supportedSentenceEmbeddingRevisionsForLanguage

        @NotNull
        public static @NotNull NSIndexSet supportedSentenceEmbeddingRevisionsForLanguage​(@NotNull
                                                                                         @NotNull java.lang.String language)
        API-Since: 14.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.