Enumerates the nearest strings of a vector, given a closure, a number of neighbors, and a distance type.
- iOS 12.0+
- macOS 10.14+
- Mac Catalyst 13.0+
- tvOS 12.0+
- watchOS 5.0+
- Xcode 11.0+
- Natural Language
A location in the vocabulary space.
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 vector.
A neighboring string.
The distance of the neighboring string