public class SortManager
extends java.lang.Object
Constructor and Description |
---|
SortManager() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Suggestion> |
sortSearchResults(int entityTypePriority,
Preference[] preference,
java.util.List<Suggestion> suggestions,
java.util.ArrayList<RankEntry> rankingModel,
java.lang.String userInput)
Sorts the search result according by the type of the search result (Sentence or Entity).
|
public java.util.List<Suggestion> sortSearchResults(int entityTypePriority, Preference[] preference, java.util.List<Suggestion> suggestions, java.util.ArrayList<RankEntry> rankingModel, java.lang.String userInput)
entityTypePriority
- entity that has the highest prioritypreference
- sorting preference in which the user specifysuggestions
- list of search resultsrankingModel
- ranking model produce by machine learning component based on user behavior