ZGen  0.2.0
a linearization system for natural language.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Typedefs | Functions | Variables
ZGen::ShiftReduce Namespace Reference

Classes

struct  DecodeContext
 Used to maintain the memory cache used by the decoder. More...
 
class  Decoder
 
class  FullDecoder
 
class  NoneDecoder
 
class  PartialDecoder
 
class  Learner
 
class  Model
 
struct  UnigramScore
 
struct  BigramScore
 
struct  TrigramScore
 
struct  ScoreContext
 
class  ScoreMap
 
struct  Option
 
class  Pipe
 
class  Action
 
class  ActionUtils
 
class  StateItem
 

Typedefs

typedef UnigramScore us_t
 
typedef BigramScore bs_t
 
typedef TrigramScore ts_t
 
typedef ScoreContext ctx_t
 
typedef Option option_t
 
typedef Action action_t
 
typedef std::vector< action_taction_collection_t
 
typedef std::vector< action_taction_sequence_t
 a list of actions; More...
 
typedef boost::unordered_map
< action_t, floatval_t
packed_score_t
 also a list of actions; More...
 
typedef boost::tuples::tuple
< const StateItem *, action_t,
floatval_t
scored_transition_t
 

Functions

std::ostream & operator<< (std::ostream &os, const StateItem &item)
 

Variables

const int kNoneWord = eg::WordAlphabet::NONE
 
const int kNonePostag = eg::PennTreebankPostagAlphabet::NONE
 
const int kNoneDeprel = eg::PennTreebankDeprelAlphabet::NONE
 
const int kMaxBeamSize = 128
 
const int kMaxSteps = 180* 2
 

Typedef Documentation

a list of actions;

typedef boost::unordered_map<action_t, floatval_t> ZGen::ShiftReduce::packed_score_t

also a list of actions;

typedef boost::tuples::tuple<const StateItem*, action_t, floatval_t> ZGen::ShiftReduce::scored_transition_t

Function Documentation

std::ostream& ZGen::ShiftReduce::operator<< ( std::ostream &  os,
const StateItem &  item 
)

Variable Documentation

const int ZGen::ShiftReduce::kMaxBeamSize = 128
const int ZGen::ShiftReduce::kMaxSteps = 180* 2
const int ZGen::ShiftReduce::kNoneDeprel = eg::PennTreebankDeprelAlphabet::NONE
const int ZGen::ShiftReduce::kNonePostag = eg::PennTreebankPostagAlphabet::NONE
const int ZGen::ShiftReduce::kNoneWord = eg::WordAlphabet::NONE