public interface NearestNeighborFinder
SemanticSpace
Modifier and Type | Method and Description |
---|---|
SortedMultiMap<Double,String> |
getMostSimilar(Set<String> terms,
int numberOfSimilarWords)
Finds the k most similar words in the semantic space according to
the cosine similarity, returning a mapping from their similarity to the
word itself.
|
SortedMultiMap<Double,String> |
getMostSimilar(String word,
int numberOfSimilarWords)
Finds the k most similar words in the semantic space according to
the cosine similarity, returning a mapping from their similarity to the
word itself.
|
SortedMultiMap<Double,String> |
getMostSimilar(Vector v,
int numberOfSimilarWords)
Finds the k most similar words in the semantic space according to
the cosine similarity, returning a mapping from their similarity to the
word itself.
|
SortedMultiMap<Double,String> getMostSimilar(String word, int numberOfSimilarWords)
null
if the provided word was
not in the semantic space.SortedMultiMap<Double,String> getMostSimilar(Set<String> terms, int numberOfSimilarWords)
null
if none of the provided
word were not in the semantic space.SortedMultiMap<Double,String> getMostSimilar(Vector v, int numberOfSimilarWords)
Copyright © 2012. All Rights Reserved.