Enumerates the nearest neighbors of a string, given a closure, a number of neighbors, and a distance type.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Natural Language
A string in the embedding vocabulary.
The largest number of neighboring strings to find.
The type of distance, which determines the formula the method uses to calculate distance.
A closure that enumerates the nearest neighbors of the given string.
A neighboring string.
The distance of the neighboring string