Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

MMRPassage Class Reference

#include <MMRPassage.hpp>

Inheritance diagram for MMRPassage:

Passage List of all members.

Public Methods

 MMRPassage (const string &id)
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) const

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

MMRPassage::MMRPassage const string &    id [inline]
 


Member Function Documentation

void MMRPassage::addTerm termCount    term [virtual]
 

Append a term to this passage.

Implements Passage.

void MMRPassage::addTerms const passageVec    pv [virtual]
 

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

Implements Passage.

void MMRPassage::clear   [virtual]
 

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

Implements Passage.

double MMRPassage::computeMMR double    lambda const [virtual]
 

double MMRPassage::dotProduct MMRPassage    b const [virtual]
 

const passageVec * MMRPassage::getAsVector void    const [virtual]
 

Return the passage terms in vector form for easy access.

Implements Passage.

int MMRPassage::operator< const Passage   b const [virtual]
 

For comparison with other passages for sorting by score.

Implements Passage.

void MMRPassage::scale double    val const [virtual]
 


Member Data Documentation

double MMRPassage::maxSim
 

double MMRPassage::qSim
 

double MMRPassage::wt
 

double MMRPassage::wtSim
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:46 2004 for Lemur Toolkit by doxygen1.2.18