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 | Static Public Attributes | List of all members
reranker::ModelInfoReducer Class Reference

A reducer class which processes ModelMessage protocol messages and merges them into a single message. More...

#include <model-merge-reducer.H>

Inheritance diagram for reranker::ModelInfoReducer:
reranker::Reducer

Public Member Functions

 ModelInfoReducer ()
 
virtual int Reduce (const string &key, const string &value)
 
virtual int Flush (void)
 

Static Public Attributes

static const char * kModelMessageFeatureName = "__MODEL_INFO_FIELD__"
 

Detailed Description

A reducer class which processes ModelMessage protocol messages and merges them into a single message.

Flush() must be called to output the final combined message.

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

Constructor & Destructor Documentation

reranker::ModelInfoReducer::ModelInfoReducer ( )
inline

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

Member Function Documentation

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

Implements reranker::Reducer.

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

int reranker::ModelInfoReducer::Reduce ( const string &  key,
const string &  value 
)
virtual

Implements reranker::Reducer.

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

Member Data Documentation

const char * reranker::ModelInfoReducer::kModelMessageFeatureName = "__MODEL_INFO_FIELD__"
static

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


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