Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

lemur::summarization::MMRPassage Class Reference

#include <MMRPassage.hpp>

Inheritance diagram for lemur::summarization::MMRPassage:

lemur::summarization::Passage List of all members.

Public Member Functions

 MMRPassage (const string &id)
 ~MMRPassage ()
virtual void clear ()
 Clear a passage (make empty and clear score, etc.).

virtual void addTerm (termCount term)
 Append a term to this passage.

virtual void addTerms (const passageVec pv)
 Take a vector of term/scores and make it a passage.

virtual const passageVecgetAsVector (void) const
 Return the passage terms in vector form for easy access.

virtual int operator< (const Passage &b) const
 For comparison with other passages for sorting by score.

virtual double computeMMR (double lambda) const
virtual double dotProduct (MMRPassage b) const
virtual void scale (double val)

Public Attributes

double wt
double wtSim
double qSim
double maxSim

Detailed Description

An implementation of the abstract class Passage meant to work in conjunction with the MMR summarizer MMRSumm


Constructor & Destructor Documentation

lemur::summarization::MMRPassage::MMRPassage const string &  id  )  [inline]
 

lemur::summarization::MMRPassage::~MMRPassage  )  [inline]
 


Member Function Documentation

void lemur::summarization::MMRPassage::addTerm termCount  term  )  [virtual]
 

Append a term to this passage.

Implements lemur::summarization::Passage.

void lemur::summarization::MMRPassage::addTerms const passageVec  pv  )  [virtual]
 

Take a vector of term/scores and make it a passage.

Implements lemur::summarization::Passage.

void lemur::summarization::MMRPassage::clear  )  [virtual]
 

Clear a passage (make empty and clear score, etc.).

Implements lemur::summarization::Passage.

double lemur::summarization::MMRPassage::computeMMR double  lambda  )  const [virtual]
 

double lemur::summarization::MMRPassage::dotProduct MMRPassage  b  )  const [virtual]
 

const lemur::summarization::passageVec * lemur::summarization::MMRPassage::getAsVector void   )  const [virtual]
 

Return the passage terms in vector form for easy access.

Implements lemur::summarization::Passage.

int lemur::summarization::MMRPassage::operator< const Passage b  )  const [virtual]
 

For comparison with other passages for sorting by score.

Implements lemur::summarization::Passage.

void lemur::summarization::MMRPassage::scale double  val  )  [virtual]
 


Member Data Documentation

double lemur::summarization::MMRPassage::maxSim
 

double lemur::summarization::MMRPassage::qSim
 

double lemur::summarization::MMRPassage::wt
 

double lemur::summarization::MMRPassage::wtSim
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:07 2010 for Lemur by doxygen 1.3.4