public class ClusterLexRankSummarizer extends LexRankSummarizer
An extension of LexRank text summarizer
LexRank select sentences purely according to the importance of sentences generated by the power method. A poetential problem is that selected top sentences may belong to the same cluster, i.e. not representative. To handle this problem, ClusterLexRank namely clusters those sentences, and then select one sentences with highest score in each cluster and choose remaining sentences acoording to the ranking score globally if nencessary
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected ClusterModel |
clusterModel |
collectionReader, distanceMetric, indexer, indexReader, powerMethod, threshold, useContinuousValue, useTFIDF| Constructor and Description |
|---|
ClusterLexRankSummarizer(OnlineSentenceIndexer indexer,
boolean useTFIDF,
int clusterNum) |
ClusterLexRankSummarizer(OnlineSentenceIndexer indexer,
int clusterNum) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
computeSimilarity(IRDoc firstSent,
IRDoc secondSent)
LexRank Summarizer uses cosine similrity.
|
static ClusterLexRankSummarizer |
getClusterLexRankSummarizer(ConfigureNode node) |
String |
summarize(CollectionReader collectionReader,
int maxLength) |
buildWeightMatrix, getSentenceSet, setContinuousScoreOpiton, setSimilarityThresholdbuildSummary, buildSummaryprotected ClusterModel clusterModel
public ClusterLexRankSummarizer(OnlineSentenceIndexer indexer, int clusterNum)
public ClusterLexRankSummarizer(OnlineSentenceIndexer indexer, boolean useTFIDF, int clusterNum)
public static ClusterLexRankSummarizer getClusterLexRankSummarizer(ConfigureNode node)
public String summarize(CollectionReader collectionReader, int maxLength)
summarize in interface GenericMultiDocSummarizersummarize in class LexRankSummarizercollectionReader - the collection readermaxLength - the length of the summaryprotected double computeSimilarity(IRDoc firstSent, IRDoc secondSent)
LexRankSummarizercomputeSimilarity in class LexRankSummarizerCopyright © 2018 JULIE Lab, Germany. All rights reserved.