ZGen  0.2.0
a linearization system for natural language.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ZGen::ShiftReduce::Learner Class Reference

#include <learner.h>

Public Member Functions

 Learner (const option_t &opts, Model *model, const DecodeContext *ctx)
 
void set_timestamp (int timestamp)
 
void learn (const StateItem *last_state_of_predict_chain, const StateItem *last_state_of_correct_chain)
 
void finish_learning (int now)
 

Constructor & Destructor Documentation

ZGen::ShiftReduce::Learner::Learner ( const option_t opts,
Model model,
const DecodeContext ctx 
)

Member Function Documentation

void ZGen::ShiftReduce::Learner::finish_learning ( int  now)
void ZGen::ShiftReduce::Learner::learn ( const StateItem last_state_of_predict_chain,
const StateItem last_state_of_correct_chain 
)

Perform learning process.

Parameters
[in]last_state_of_predict_chainThe last state in state chain for postive result.
[in]last_state_of_correct_chainThe last state in state chain for negative result.
void ZGen::ShiftReduce::Learner::set_timestamp ( int  timestamp)

Set timestamp to the learner.

Parameters
[in]timestampThe time stamp.

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