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

indri::parse::AnchorTextAnnotator Class Reference

#include <AnchorTextAnnotator.hpp>

Inheritance diagram for indri::parse::AnchorTextAnnotator:

indri::parse::Transformation indri::parse::ObjectHandler< _Type > List of all members.

Public Member Functions

 AnchorTextAnnotator ()
 ~AnchorTextAnnotator ()
void open (const std::string &anchorFile)
indri::api::ParsedDocumenttransform (indri::api::ParsedDocument *document)
void setHandler (ObjectHandler< indri::api::ParsedDocument > &handler)
void handle (indri::api::ParsedDocument *document)

Private Member Functions

void _readDocumentHeader ()
void _fetchText (indri::utility::greedy_vector< TagExtent * > &tags, indri::utility::greedy_vector< char * > &terms)
bool _matchingDocno (indri::api::ParsedDocument *document)

Private Attributes

std::ifstream _in
char _docno [256]
int _count
indri::utility::Buffer _buffer
ObjectHandler< indri::api::ParsedDocument > * _handler

Detailed Description

Reads anchor text in from files created by the combiner, and adds the text to the end of the parsed document


Constructor & Destructor Documentation

indri::parse::AnchorTextAnnotator::AnchorTextAnnotator  )  [inline]
 

indri::parse::AnchorTextAnnotator::~AnchorTextAnnotator  )  [inline]
 


Member Function Documentation

void indri::parse::AnchorTextAnnotator::_fetchText indri::utility::greedy_vector< TagExtent * > &  tags,
indri::utility::greedy_vector< char * > &  terms
[inline, private]
 

bool indri::parse::AnchorTextAnnotator::_matchingDocno indri::api::ParsedDocument document  )  [inline, private]
 

void indri::parse::AnchorTextAnnotator::_readDocumentHeader  )  [inline, private]
 

void indri::parse::AnchorTextAnnotator::handle indri::api::ParsedDocument document  )  [inline, virtual]
 

Implements indri::parse::Transformation.

void indri::parse::AnchorTextAnnotator::open const std::string &  anchorFile  )  [inline]
 

void indri::parse::AnchorTextAnnotator::setHandler ObjectHandler< indri::api::ParsedDocument > &  handler  )  [inline, virtual]
 

Implements indri::parse::Transformation.

indri::api::ParsedDocument* indri::parse::AnchorTextAnnotator::transform indri::api::ParsedDocument document  )  [inline, virtual]
 

Implements indri::parse::Transformation.


Member Data Documentation

indri::utility::Buffer indri::parse::AnchorTextAnnotator::_buffer [private]
 

int indri::parse::AnchorTextAnnotator::_count [private]
 

char indri::parse::AnchorTextAnnotator::_docno[256] [private]
 

ObjectHandler<indri::api::ParsedDocument>* indri::parse::AnchorTextAnnotator::_handler [private]
 

std::ifstream indri::parse::AnchorTextAnnotator::_in [private]
 


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