Main Page   Namespace List   Class Hierarchy   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 char *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 (passageVec pv)
 Take a vector of term/scores and make it a passage.

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

virtual int operator< (Passage &b)
 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 char * id ) [inline]
 


Member Function Documentation

void MMRPassage::addTerm ( termCount term ) [virtual]
 

Append a term to this passage.

Reimplemented from Passage.

void MMRPassage::addTerms ( passageVec pv ) [virtual]
 

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

Reimplemented from Passage.

void MMRPassage::clear ( void ) [virtual]
 

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

Reimplemented from Passage.

double MMRPassage::computeMMR ( double lambda ) const [virtual]
 

double MMRPassage::dotProduct ( MMRPassage b ) const [virtual]
 

passageVec * MMRPassage::getAsVector ( void ) [virtual]
 

Return the passage terms in vector form for easy access.

Reimplemented from Passage.

int MMRPassage::operator< ( Passage & b ) [virtual]
 

For comparison with other passages for sorting by score.

Reimplemented from 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 at Fri Jul 26 18:27:11 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000