ModErn Text Analysis
META Enumerates Textual Applications
Public Member Functions | List of all members
meta::sequence::sequence_analyzer::const_collector Class Reference

Const version of the collector. More...

#include <sequence_analyzer.h>

Inheritance diagram for meta::sequence::sequence_analyzer::const_collector:
meta::sequence::sequence_analyzer::basic_collector< const sequence_analyzer > meta::sequence::sequence_analyzer::collector

Public Member Functions

virtual void add (const std::string &feat, double amount)
 Adds a new feature to this observation. More...
 
- Public Member Functions inherited from meta::sequence::sequence_analyzer::basic_collector< const sequence_analyzer >
 basic_collector (const sequence_analyzer *analyzer, observation *obs)
 Creates the collector with the given analyzer. More...
 
- Public Member Functions inherited from meta::sequence::sequence_analyzer::collector
 collector (observation *obs)
 Constructs the collector over a given observation. More...
 
 ~collector ()
 Writes all analyzed information out to the observation.
 

Additional Inherited Members

- Protected Member Functions inherited from meta::sequence::sequence_analyzer::basic_collector< const sequence_analyzer >
virtual feature_id feature (const std::string &feat)
 
- Protected Attributes inherited from meta::sequence::sequence_analyzer::basic_collector< const sequence_analyzer >
const sequence_analyzeranalyzer_
 back-pointer to the analyzer for this collector
 
- Protected Attributes inherited from meta::sequence::sequence_analyzer::collector
observationobs_
 the observation we are collecting data for
 
observation::feature_vector feats_
 the feature vector that will be placed into the observation
 

Detailed Description

Const version of the collector.

This collector will only generate existing feature_ids and label_ids.

Member Function Documentation

virtual void meta::sequence::sequence_analyzer::const_collector::add ( const std::string &  feat,
double  amount 
)
inlinevirtual

Adds a new feature to this observation.

Parameters
featThe string representation of the feature to add
amountThe value associated with this feature (typically 1)

Reimplemented from meta::sequence::sequence_analyzer::collector.


The documentation for this class was generated from the following file: