|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmapps.commons.util.KeywordUtil
public class KeywordUtil
| Constructor Summary | |
|---|---|
KeywordUtil()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
detectLanguage(java.lang.String text)
|
static java.lang.String[] |
getCommonWords(java.lang.String text)
|
static java.util.List<java.lang.String> |
getKeywords(java.util.List<java.lang.String> textStrings)
Get keywords from the strings. |
static java.util.List<java.lang.String> |
getKeywords(java.util.List<java.lang.String> textStrings,
int max)
Get keywords from the strings. |
static java.util.List<java.lang.String> |
getKeywords(java.util.List<java.lang.String> textStrings,
java.lang.String language)
Get keywords from the strings |
static java.util.List<java.lang.String> |
getKeywords(java.util.List<java.lang.String> textStrings,
java.lang.String[] ignoreWords,
int max)
Get keywords from the strings |
static java.util.List<java.lang.String> |
getKeywords(java.util.List<java.lang.String> textStrings,
java.lang.String language,
int max)
Get keywords from the strings |
static java.util.List<java.lang.String> |
getKeywords(java.lang.String text)
Get keywords from a text. |
static java.util.List<java.lang.String> |
getKeywords(java.lang.String text,
int max)
Get keywords from a text. |
static java.util.List<java.lang.String> |
getKeywords(java.lang.String text,
java.lang.String language)
Get keywords from a text |
static java.util.List<java.lang.String> |
getKeywords(java.lang.String text,
java.lang.String[] ignoreWords,
int max)
Get keywords from a text |
static java.util.List<java.lang.String> |
getKeywords(java.lang.String text,
java.lang.String language,
int max)
Get keywords from a text |
static java.lang.String |
keywordsToString(java.util.List<java.lang.String> keywords)
Convert list of keywords to comma-separated string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeywordUtil()
| Method Detail |
|---|
public static java.lang.String keywordsToString(java.util.List<java.lang.String> keywords)
keywords - - list of keywords
public static java.util.List<java.lang.String> getKeywords(java.lang.String text)
text - - full text from which the keywords should be extracted
public static java.util.List<java.lang.String> getKeywords(java.lang.String text,
java.lang.String language)
text - - full text from which the keywords should be extractedlanguage - - When the language is not recognized then all words
are eligable to be a keyword.
public static java.util.List<java.lang.String> getKeywords(java.lang.String text,
java.lang.String language,
int max)
text - - full text from which the keywords should be extractedlanguage - - When the language is not recognized then all words
are eligable to be a keyword.max - - maximum number of keywords returned
public static java.util.List<java.lang.String> getKeywords(java.lang.String text,
int max)
text - - full text from which the keywords should be extractedmax - - maximum number of keywords returned
public static java.util.List<java.lang.String> getKeywords(java.lang.String text,
java.lang.String[] ignoreWords,
int max)
text - - full text from which the keywords should be extractedignoreWords - - ignore the words in this arraymax - - maximum number of keywords returned
public static java.util.List<java.lang.String> getKeywords(java.util.List<java.lang.String> textStrings)
textStrings - - strings from which the keywords should be extracted
public static java.util.List<java.lang.String> getKeywords(java.util.List<java.lang.String> textStrings,
java.lang.String language)
textStrings - - strings from which the keywords should be extractedlanguage - - When the language is not recognized then all words
are eligable to be a keyword.
public static java.util.List<java.lang.String> getKeywords(java.util.List<java.lang.String> textStrings,
java.lang.String language,
int max)
textStrings - - strings from which the keywords should be extractedlanguage - - When the language is not recognized then all words
are eligable to be a keyword.max - - maximum number of keywords returned
public static java.util.List<java.lang.String> getKeywords(java.util.List<java.lang.String> textStrings,
int max)
textStrings - - strings from which the keywords should be extractedmax - - maximum number of keywords returned
public static java.util.List<java.lang.String> getKeywords(java.util.List<java.lang.String> textStrings,
java.lang.String[] ignoreWords,
int max)
textStrings - - strings from which the keywords should be extractedignoreWords - - ignore the words in this arraymax - - maximum number of keywords returned
public static java.lang.String[] getCommonWords(java.lang.String text)
public static java.lang.String detectLanguage(java.lang.String text)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||