|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.ie.keyphraseextraction.KeyphraseExtractor
public abstract class KeyphraseExtractor
An abstract class to extract key phrases from given text.
HeadNounPhraseExtractor
,
RepeatedStringExtractor
Method Summary | |
---|---|
java.util.SortedSet<Phrase> |
extract(java.lang.String text)
Extracts all key phrases from the given text with score normalization to the range of [0, 1]. |
java.util.SortedSet<Phrase> |
extract(java.lang.String text,
int k)
Extracts at most the k highest rated key phrases from the given text with score normalization to the range of [0, 1]. |
java.util.SortedSet<Phrase> |
extract(java.lang.String text,
int k,
boolean normalize)
Extracts at most the k highest rated key phrases from the given text with or without score normalization to the range of [0, 1]. |
java.util.SortedSet<Phrase> |
extract(java.lang.String text,
int k,
int phraseLength,
boolean normalize)
Extracts at most the k highest rated key phrases from the given text with or without score normalization to the range of [0, 1]. |
java.util.Locale |
getLocale()
Returns the current locale. |
static java.util.SortedSet<Phrase> |
getTopPhrases(java.util.Set<Phrase> phrases,
int k)
Extracts the k highest rated phrases. |
void |
setLocale(java.util.Locale locale)
Registers a new locale to this extractor. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.util.SortedSet<Phrase> extract(java.lang.String text)
text
- the text to extract key phrases from.
extract(String, int, int, boolean)
public java.util.SortedSet<Phrase> extract(java.lang.String text, int k)
text
- the text to extract key phrases from.k
- the maximal number of key phrases to extract.
extract(String, int, int, boolean)
public java.util.SortedSet<Phrase> extract(java.lang.String text, int k, boolean normalize)
text
- the text to extract key phrases from.k
- the maximal number of key phrases to extract.normalize
- enables/disables score normalization.
extract(String, int, int, boolean)
public java.util.SortedSet<Phrase> extract(java.lang.String text, int k, int phraseLength, boolean normalize)
text
- the text to extract key phrases from.k
- the maximal number of key phrases to extract.phraseLength
- the maximal length of key phrases in words.normalize
- enables/disables score normalization to the range [0,1].
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale
- the locale to register.public static java.util.SortedSet<Phrase> getTopPhrases(java.util.Set<Phrase> phrases, int k)
phrases
- a set of phrases.k
- the maximal number of phrases to extract.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |