|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.search.SuggestionManager
public class SuggestionManager
MoreLikeThis with Tf/Idf computation
| Constructor Summary | |
|---|---|
SuggestionManager()
|
|
| Method Summary | |
|---|---|
static Collection<Category> |
getCategoriesLikeThis(String text,
String lang)
Retrieve Category similar to the specified text. |
static SuggestionManager |
getInstance()
Returns the singleton. |
static SortedSet<Publication> |
getPublicationsLikeThis(String text,
String lang)
Retrieve Publication similar to the specified text. |
protected static List<String> |
getSortedList(Map<String,? extends Comparable> map)
Extracts all of the keys from the map, and returns them sorted in reverse order of the values. |
static Collection<String> |
getTfIdfVector(String text,
String lang)
Convenient shortcut for getTfIdfVectorFromPublications |
static Collection<String> |
getTfIdfVectorFromCategories(String text,
String lang)
Retrieve TF/IDF keyword from Categories index |
static Collection<String> |
getTfIdfVectorFromDocuments(String text,
String lang)
Retrieve TF/IDF keyword from Documents index |
static Collection<String> |
getTfIdfVectorFromPublications(String text,
String lang)
Retrieve TF/IDF keyword from Publications index |
String |
guessLanguage(String text,
String deflang)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SuggestionManager()
| Method Detail |
|---|
public static SuggestionManager getInstance()
public String guessLanguage(String text,
String deflang)
public static Collection<String> getTfIdfVector(String text,
String lang)
getTfIdfVectorFromPublications(String,String)
public static Collection<String> getTfIdfVectorFromPublications(String text,
String lang)
text - the text to matchlang - the text language
public static SortedSet<Publication> getPublicationsLikeThis(String text,
String lang)
text - some textlang - the language of the specified text
public static Collection<String> getTfIdfVectorFromDocuments(String text,
String lang)
text - the text to matchlang - the text language
public static Collection<String> getTfIdfVectorFromCategories(String text,
String lang)
text - the text to matchlang - the text language
public static Collection<Category> getCategoriesLikeThis(String text,
String lang)
text - some textlang - the language of the specified text
protected static List<String> getSortedList(Map<String,? extends Comparable> map)
map - The map.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||