public class LexRankSummarizer extends AbstractSentenceSum implements GenericMultiDocSummarizer
LexRank Summerizer
Copyright: Copyright (c) 2005
Company: IST, Drexel University
| Modifier and Type | Field and Description |
|---|---|
protected CollectionReader |
collectionReader |
protected DocDistance |
distanceMetric |
protected OnlineSentenceIndexer |
indexer |
protected OnlineSentenceIndexReader |
indexReader |
protected PowerMethod |
powerMethod |
protected double |
threshold |
protected boolean |
useContinuousValue |
protected boolean |
useTFIDF |
| Constructor and Description |
|---|
LexRankSummarizer(OnlineSentenceIndexer indexer) |
LexRankSummarizer(OnlineSentenceIndexer indexer,
boolean useTFIDF) |
| Modifier and Type | Method and Description |
|---|---|
protected DoubleDenseMatrix |
buildWeightMatrix(ArrayList docSet) |
protected double |
computeSimilarity(IRDoc firstSent,
IRDoc secondSent)
LexRank Summarizer uses cosine similrity.
|
protected ArrayList |
getSentenceSet(IndexReader indexReader) |
void |
setContinuousScoreOpiton(boolean option) |
void |
setSimilarityThreshold(double threshold) |
String |
summarize(CollectionReader collectionReader,
int maxLength) |
buildSummary, buildSummaryprotected OnlineSentenceIndexReader indexReader
protected OnlineSentenceIndexer indexer
protected CollectionReader collectionReader
protected DocDistance distanceMetric
protected PowerMethod powerMethod
protected double threshold
protected boolean useContinuousValue
protected boolean useTFIDF
public LexRankSummarizer(OnlineSentenceIndexer indexer)
public LexRankSummarizer(OnlineSentenceIndexer indexer, boolean useTFIDF)
public void setSimilarityThreshold(double threshold)
public void setContinuousScoreOpiton(boolean option)
public String summarize(CollectionReader collectionReader, int maxLength)
summarize in interface GenericMultiDocSummarizercollectionReader - the collection readermaxLength - the length of the summaryprotected DoubleDenseMatrix buildWeightMatrix(ArrayList docSet)
protected double computeSimilarity(IRDoc firstSent, IRDoc secondSent)
firstSentIndex: - the number of the first sentencesecondSentIndex: - the number of the second sentenceprotected ArrayList getSentenceSet(IndexReader indexReader)
Copyright © 2018 JULIE Lab, Germany. All rights reserved.