Reranker Framework (ReFr)
Reranking framework for structure prediction and discriminative language modeling
|
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... | |
Interface for serializer for reranker::Model instances to ModelMessage instances.
Definition in file model-proto-writer.H.
#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.