Class NearestNeighborsAnalyzer
- java.lang.Object
-
- com.arangodb.entity.arangosearch.analyzer.SearchAnalyzer
-
- com.arangodb.entity.arangosearch.analyzer.NearestNeighborsAnalyzer
-
public final class NearestNeighborsAnalyzer extends SearchAnalyzer
An Analyzer capable of finding nearest neighbors of tokens in the input. It applies a user-provided supervised fastText word embedding model to retrieve nearest neighbor tokens in the text. It is able to find neighbors of individual tokens as well as entire input strings. For entire input strings, the Analyzer will return nearest neighbors for each token within the input string.- Since:
- ArangoDB 3.10
- Author:
- Michele Rastelli
- See Also:
- API Documentation
-
-
Constructor Summary
Constructors Constructor Description NearestNeighborsAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
NearestNeighborsAnalyzerProperties
getProperties()
int
hashCode()
void
setProperties(NearestNeighborsAnalyzerProperties properties)
-
Methods inherited from class com.arangodb.entity.arangosearch.analyzer.SearchAnalyzer
getFeatures, getName, getType, setFeatures, setName, setType
-
-
-
-
Method Detail
-
getProperties
public NearestNeighborsAnalyzerProperties getProperties()
-
setProperties
public void setProperties(NearestNeighborsAnalyzerProperties properties)
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSearchAnalyzer
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSearchAnalyzer
-
-