Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros
model-proto-writer.H File Reference

Interface for serializer for reranker::Model instances to ModelMessage instances. More...

#include <cstdio>
#include <iostream>
#include <memory>
#include "../proto/model.pb.h"
#include "../proto/dataio.h"
#include "factory.H"
#include "feature-vector-writer.H"
#include "model.H"

Go to the source code of this file.

Classes

class  reranker::ModelProtoWriter
 A class to construct a ModelMessage from a Model instance. More...
 
class  reranker::EndOfEpochModelWriter
 An end-of-epoch hook for writing out the best model so far to file after each epoch (if the best model changes from the last time it was written out). More...
 

Namespaces

 reranker
 Provides reranking models for discriminative modeling, with some special handling for discriminative language models.
 

Macros

#define REGISTER_NAMED_MODEL_PROTO_WRITER(TYPE, NAME)   REGISTER_NAMED(TYPE,NAME,ModelProtoWriter)
 Registers the ModelProtoWriter implementation with the specified subtype TYPE and NAME with the ModelProtoWriter Factory. More...
 
#define REGISTER_MODEL_PROTO_WRITER(TYPE)   REGISTER_NAMED_MODEL_PROTO_WRITER(TYPE,TYPE)
 Registers the ModelProtoWriter implementation with the specified subtype TYPE with the ModelProtoWriter Factory. More...
 

Detailed Description

Interface for serializer for reranker::Model instances to ModelMessage instances.

Author
dbike.nosp@m.l@go.nosp@m.ogle..nosp@m.com (Dan Bikel)

Definition in file model-proto-writer.H.

Macro Definition Documentation

#define REGISTER_MODEL_PROTO_WRITER (   TYPE)    REGISTER_NAMED_MODEL_PROTO_WRITER(TYPE,TYPE)

Registers the ModelProtoWriter implementation with the specified subtype TYPE with the ModelProtoWriter Factory.

Definition at line 116 of file model-proto-writer.H.

#define REGISTER_NAMED_MODEL_PROTO_WRITER (   TYPE,
  NAME 
)    REGISTER_NAMED(TYPE,NAME,ModelProtoWriter)

Registers the ModelProtoWriter implementation with the specified subtype TYPE and NAME with the ModelProtoWriter Factory.

Definition at line 110 of file model-proto-writer.H.