Enumerates the nearest strings of a vector, given a closure, a distance, 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 location in the vocabulary space.
The largest number of neighboring strings to find.
The largest distance a neighbor can be from the given vector.
The type of distance, which determines the formula the method uses to calculate distance.
A closure that enumerates the nearest neighbors of the given vector.
A neighboring string.
The distance of the neighboring string