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::FeatureVectorReader< FV > Class Template Reference

A class to de-serialize FeatureVector instances from FeatureVecMessage instances. More...

#include <feature-vector-reader.H>

Public Member Functions

void Read (const FeatureVecMessage &fv_message, FV &features, Symbols *symbols) const
 Serializes the specified feature vector to the specified FeatureVecMessage protocol buffer message. More...
 

Detailed Description

template<typename FV>
class reranker::FeatureVectorReader< FV >

A class to de-serialize FeatureVector instances from FeatureVecMessage instances.

Template Parameters
thetype of FeatureVector to de-serialize

Definition at line 61 of file feature-vector-reader.H.

Member Function Documentation

template<typename FV>
void reranker::FeatureVectorReader< FV >::Read ( const FeatureVecMessage &  fv_message,
FV &  features,
Symbols symbols 
) const
inline

Serializes the specified feature vector to the specified FeatureVecMessage protocol buffer message.

Parameters
[in]fv_messagethe FeatureVecMessage instance from which to read the serialized version of a feature vector
[out]featuresthe feature vector to be de-serialized from the specified FeatureVecMessage
[in,out]symbolsthe symbol table to get an int feature uid when a FeatureMessage has its name field set

Definition at line 73 of file feature-vector-reader.H.


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