Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
A reducer class which processes FeatureMessage proto buffers. More...
#include <model-merge-reducer.H>
Public Member Functions | |
FeatureReducer (bool uniform_mix, double mix_denominator) | |
virtual int | Reduce (const string &feat_id, const string &value) |
virtual int | Flush (void) |
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.
reranker::FeatureReducer::FeatureReducer | ( | bool | uniform_mix, |
double | mix_denominator | ||
) |
Definition at line 53 of file model-merge-reducer.C.
|
virtual |
Implements reranker::Reducer.
Definition at line 96 of file model-merge-reducer.C.
|
virtual |
Implements reranker::Reducer.
Definition at line 58 of file model-merge-reducer.C.