KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
semantics::Null_semantic_event Class Reference

#include <Null_semantic_event.h>

Inheritance diagram for semantics::Null_semantic_event:
semantics::Semantic_step_event semantics::Tree_event

Public Member Functions

 Null_semantic_event ()
 
Semantic_step_event::Event_ptr get_a_copy (bool) const
 
double log_probability (const bool &) const
 compute log probability of this event More...
 
void update_event_views ()
 update event views More...
 
void resample_table_assignments ()
 resample CRP table assignments for all component event views More...
 
void print (std::ostream &) const
 display this node's data in human readable form More...
 
void print_view_counts (std::ostream &) const
 pure virtual dummy — instantiated versions display count data More...
 
void update_step (const Step_code_t &)
 
const Key_slots::Mapvar_map () const
 return reference to the map between variable names and positions More...
 
- Public Member Functions inherited from semantics::Semantic_step_event
void print (std::ostream &os) const
 display this node's data in human readable form More...
 
- Public Member Functions inherited from semantics::Tree_event
virtual ~Tree_event ()
 virtual destructor More...
 
virtual void release_view_counts ()
 turn off learn_ and remove counts from database More...
 
virtual void reacquire_view_counts ()
 turn on learn_ and add counts to database More...
 
virtual void update_semantic_context (const Sem_hash_pair &, const Sem_hash_pair &)
 update semantic parent and head (if they exist) More...
 
virtual void print_with_links (std::ostream &) const
 virtual function, does nothing at base level More...
 

Additional Inherited Members

- Public Types inherited from semantics::Semantic_step_event
typedef boost::shared_ptr
< Semantic_step_event
Event_ptr
 
- Public Types inherited from semantics::Tree_event
typedef boost::shared_ptr
< Tree_event
Self_ptr
 
typedef Token_map::Val_type Value_type
 
typedef Token_map::Key_type Key_type
 
typedef std::vector< Value_typeData_type
 
typedef Value_type Word_type
 
typedef Value_type Tag_type
 
typedef Value_type Label_type
 
typedef Value_type Distance_type
 
typedef boost::tuple
< Word_type, Label_type,
Label_type
Node_data
 
typedef
Semantic_data_base::Hash_pair 
Sem_hash_pair
 
- Static Public Member Functions inherited from semantics::Tree_event
static Lexicon_dblexicon ()
 
static Nonterminal_dbnt_lexicon ()
 
- Static Public Attributes inherited from semantics::Tree_event
static bool VERBOSE = false
 
static const int WORD = 0
 
static const int TAG = 1
 
static const int LABEL = 2
 
static const int HEAD = 0
 
static const int ARGS = 1
 
- Protected Member Functions inherited from semantics::Semantic_step_event
 Semantic_step_event (bool learn)
 
 Semantic_step_event (Data_type data, bool learn)
 
virtual ~Semantic_step_event ()
 
- Protected Member Functions inherited from semantics::Tree_event
 Tree_event (bool learn)
 construct an empty event with data to be filled at derived level More...
 
 Tree_event (const Data_type &data, bool learn)
 construct an event with data prespecified More...
 
const Key_typedata_as_word (const Key_type &variable) const
 look up data entry in position <variable> and return as word More...
 
const Key_typedata_as_nonterminal (const Key_type &variable) const
 look up data entry in position <variable> and return as nt More...
 
const Key_type data_as_semantic_step (const Key_type &variable) const
 look up data entry in position <variable> and return as step code More...
 
const Key_typedata_as_semantic_head (const Key_type &variable) const
 look up data entry in position <variable> and return as semhead More...
 
const Key_typedata_as_semantic_args (const Key_type &variable) const
 look up data entry in position <variable> and return as semargs More...
 
const Value_typedata_as_code (const Key_type &variable) const
 look up data entry in position <variable> and return as code More...
 
Value_typedata_in_slot (const Key_type &variable)
 return data in position as lvalue More...
 
- Protected Attributes inherited from semantics::Tree_event
Data_type data_
 
bool learn_
 

Constructor & Destructor Documentation

semantics::Null_semantic_event::Null_semantic_event ( )
inline

Member Function Documentation

Semantic_step_event::Event_ptr semantics::Null_semantic_event::get_a_copy ( bool  ) const
inlinevirtual
double semantics::Null_semantic_event::log_probability ( const bool &  collins) const
inlinevirtual

compute log probability of this event

Parameters
methoduse "Collins" to use Collins' style

Implements semantics::Tree_event.

void semantics::Null_semantic_event::print ( std::ostream &  os) const
inlinevirtual

display this node's data in human readable form

Implements semantics::Tree_event.

void semantics::Null_semantic_event::print_view_counts ( std::ostream &  ) const
inlinevirtual

pure virtual dummy — instantiated versions display count data

Implements semantics::Tree_event.

void semantics::Null_semantic_event::resample_table_assignments ( )
inlinevirtual

resample CRP table assignments for all component event views

Implements semantics::Tree_event.

void semantics::Null_semantic_event::update_event_views ( )
inlinevirtual

update event views

Implements semantics::Tree_event.

void semantics::Null_semantic_event::update_step ( const Step_code_t )
inlinevirtual

Reimplemented from semantics::Semantic_step_event.

const Key_slots::Map& semantics::Null_semantic_event::var_map ( ) const
inlinevirtual

return reference to the map between variable names and positions

Implements semantics::Tree_event.


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