public interface TextSummarizer
Modifier and Type | Method and Description |
---|---|
<T extends java.lang.Comparable> |
summarize(java.util.List<java.util.List<T>> sentences)
Summarize text.
|
<T extends java.lang.Comparable> |
summarize(java.util.List<java.util.List<T>> sentences,
int summarySentences)
Summarize text.
|
<T extends java.lang.Comparable> java.util.List<java.lang.Integer> summarize(java.util.List<java.util.List<T>> sentences)
sentences
- Tokenized sentences to summarize.<T extends java.lang.Comparable> java.util.List<java.lang.Integer> summarize(java.util.List<java.util.List<T>> sentences, int summarySentences)
sentences
- Tokenized sentences to summarize.summarySentences
- Maximum number of sentences to return
in the summary.