|
ModErn Text Analysis
META Enumerates Textual Applications
|
Const version of the collector. More...
#include <sequence_analyzer.h>
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_analyzer * | analyzer_ |
| back-pointer to the analyzer for this collector | |
Protected Attributes inherited from meta::sequence::sequence_analyzer::collector | |
| observation * | obs_ |
| the observation we are collecting data for | |
| observation::feature_vector | feats_ |
| the feature vector that will be placed into the observation | |
Const version of the collector.
This collector will only generate existing feature_ids and label_ids.
|
inlinevirtual |
Adds a new feature to this observation.
| feat | The string representation of the feature to add |
| amount | The value associated with this feature (typically 1) |
Reimplemented from meta::sequence::sequence_analyzer::collector.
1.8.9.1