Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
reranker::FeatureReducer Class Reference

A reducer class which processes FeatureMessage proto buffers. More...

#include <model-merge-reducer.H>

Inheritance diagram for reranker::FeatureReducer:
reranker::Reducer

Public Member Functions

 FeatureReducer (bool uniform_mix, double mix_denominator)
 
virtual int Reduce (const string &feat_id, const string &value)
 
virtual int Flush (void)
 

Detailed Description

A reducer class which processes FeatureMessage proto buffers.

All features with the same feature ID are merged into a single output FeatureMessage object. This object is output to stdout. Flush() must be called to output the final combined feature message.

Definition at line 65 of file model-merge-reducer.H.

Constructor & Destructor Documentation

reranker::FeatureReducer::FeatureReducer ( bool  uniform_mix,
double  mix_denominator 
)

Definition at line 53 of file model-merge-reducer.C.

Member Function Documentation

int reranker::FeatureReducer::Flush ( void  )
virtual

Implements reranker::Reducer.

Definition at line 96 of file model-merge-reducer.C.

int reranker::FeatureReducer::Reduce ( const string &  feat_id,
const string &  value 
)
virtual

Implements reranker::Reducer.

Definition at line 58 of file model-merge-reducer.C.


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