public class SuggestionManager
extends java.lang.Object
Constructor and Description |
---|
SuggestionManager() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection<Category> |
getCategoriesLikeThis(java.lang.String text,
java.lang.String lang)
Retrieve Category similar to the specified text.
|
static SuggestionManager |
getInstance()
Returns the singleton.
|
static java.util.SortedSet<Publication> |
getPublicationsLikeThis(java.lang.String text,
java.lang.String lang)
Retrieve Publication similar to the specified text.
|
protected static java.util.List<java.lang.String> |
getSortedList(java.util.Map<java.lang.String,? extends java.lang.Comparable> map)
Extracts all of the keys from the map, and returns them sorted in
reverse order of the values.
|
static java.util.Collection<java.lang.String> |
getTfIdfVector(java.lang.String text,
java.lang.String lang)
Convenient shortcut for getTfIdfVectorFromPublications
|
static java.util.Collection<java.lang.String> |
getTfIdfVectorFromCategories(java.lang.String text,
java.lang.String lang)
Retrieve TF/IDF keyword from Categories index
|
static java.util.Collection<java.lang.String> |
getTfIdfVectorFromDocuments(java.lang.String text,
java.lang.String lang)
Retrieve TF/IDF keyword from Documents index
|
static java.util.Collection<java.lang.String> |
getTfIdfVectorFromPublications(java.lang.String text,
java.lang.String lang)
Retrieve TF/IDF keyword from Publications index
|
java.lang.String |
guessLanguage(java.lang.String text,
java.lang.String deflang) |
public static SuggestionManager getInstance()
public java.lang.String guessLanguage(java.lang.String text, java.lang.String deflang)
public static java.util.Collection<java.lang.String> getTfIdfVector(java.lang.String text, java.lang.String lang)
public static java.util.Collection<java.lang.String> getTfIdfVectorFromPublications(java.lang.String text, java.lang.String lang)
text
- the text to matchlang
- the text languagepublic static java.util.SortedSet<Publication> getPublicationsLikeThis(java.lang.String text, java.lang.String lang)
text
- some textlang
- the language of the specified textpublic static java.util.Collection<java.lang.String> getTfIdfVectorFromDocuments(java.lang.String text, java.lang.String lang)
text
- the text to matchlang
- the text languagepublic static java.util.Collection<java.lang.String> getTfIdfVectorFromCategories(java.lang.String text, java.lang.String lang)
text
- the text to matchlang
- the text languagepublic static java.util.Collection<Category> getCategoriesLikeThis(java.lang.String text, java.lang.String lang)
text
- some textlang
- the language of the specified textprotected static java.util.List<java.lang.String> getSortedList(java.util.Map<java.lang.String,? extends java.lang.Comparable> map)
map
- The map.Copyright © 2001-2010 Jalios SA. All Rights Reserved.