1 #ifndef DEPENDENCY_EVENT_H_
2 #define DEPENDENCY_EVENT_H_
14 #include <boost/shared_ptr.hpp>
15 #include <boost/array.hpp>
16 #include <boost/tuple/tuple.hpp>
65 coord_data_(coord_data)
120 d1_view -> resample_table_assignment();
121 d2_view -> resample_table_assignment();
147 void update_event_views();
boost::shared_ptr< Syntactic_event > Event_ptr
Definition: Syntactic_event.h:27
boost::tuple< size_t, size_t > Hash_pair
Definition: Semantic_elaboration.h:114
Definition: Dependency_event.h:26
std::vector< Value_type > Data_type
Definition: Tree_event.h:36
boost::shared_ptr< PCC2_view > coord2_view
Definition: Dependency_event.h:34
static const Key_slots::Map variable_map
Definition: Event_traits.h:197
bool learn_
Definition: Tree_event.h:183
Definition: Syntactic_event.h:20
void resample_table_assignments()
resample CRP table assignments for all component event views
Definition: Dependency_event.h:118
Value_type & data_in_slot(const Key_type &variable)
return data in position as lvalue
Definition: Tree_event.cpp:119
void reacquire_view_counts()
reacquire counts for associated events (i.e., treat as observed)
Definition: Dependency_event.h:106
Value_type Distance_type
Definition: Tree_event.h:40
void print_with_links(std::ostream &os) const
Display functions.
Definition: Dependency_event.cpp:84
Dependency_event(const Data_type &data, const Data_type &punc_data, const Data_type &coord_data, bool learn=false)
Definition: Dependency_event.h:58
Event_ptr get_a_copy(bool learn=false) const
return a pointer to a deep copy of this instance
Definition: Dependency_event.h:125
#define USE_SEMANTICS
Definition: Event_traits.h:4
void release_view_counts()
release counts for associated views (i.e., treat as unobserved)
Definition: Dependency_event.h:94
void update_semantic_context(const Semantic_data_base::Hash_pair &parent_semantics, const Semantic_data_base::Hash_pair &head_semantics)
Manipulation.
Definition: Dependency_event.h:80
Data_type data_
Definition: Tree_event.h:182
boost::shared_ptr< D1_view > d1_view
Definition: Dependency_event.h:29
boost::shared_ptr< PCC2_view > punc2_view
Definition: Dependency_event.h:32
Dependency_event(const Node_data &node_data, const Node_data &parent_data, const Node_data &head_data, const Distance_type &distance, bool punc_flag, const Node_data &punc_data, bool coord_flag, const Node_data &coord_data, int id, bool learn=true)
Constructors and destructors.
Definition: Dependency_event.cpp:8
boost::shared_ptr< D2_view > d2_view
Definition: Dependency_event.h:30
boost::shared_ptr< PCC1_view > coord1_view
Definition: Dependency_event.h:33
boost::tuple< Word_type, Label_type, Label_type > Node_data
Definition: Tree_event.h:41
boost::shared_ptr< PCC1_view > punc1_view
Definition: Dependency_event.h:31
double log_probability(const bool &collins=false) const
Calculation.
Definition: Dependency_event.cpp:68
Semantic_data_base::Hash_pair Hash_pair
Definition: Elaboration_tree.h:32
void print_view_counts(std::ostream &os) const
display count information associated with this node
Definition: Dependency_event.cpp:105
boost::bimap< int, std::string > Map
Definition: Event_traits.h:34