15 #include <boost/shared_ptr.hpp>
75 void print(std::ostream& os)
const;
117 s1_view -> resample_table_assignment();
118 s2_view -> resample_table_assignment();
134 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
void release_view_counts()
release counts for associated views (i.e., treat as unobserved)
Definition: Root_event.h:91
Root_event(const Node_data &node_data, int id, bool learn=true)
constructor
Definition: Root_event.cpp:12
std::vector< Value_type > Data_type
Definition: Tree_event.h:36
bool learn_
Definition: Tree_event.h:183
void reacquire_view_counts()
reacquire counts for associated views (i.e., treat as observed)
Definition: Root_event.h:103
double log_probability(const bool &collins=false) const
compute smoothed probability of this event
Definition: Root_event.cpp:35
Definition: Syntactic_event.h:20
Root_event(const Data_type &data, bool learn=false)
data constructor
Definition: Root_event.h:50
static const Key_slots::Map variable_map
Definition: Event_traits.h:103
~Root_event()
default destructor
Definition: Root_event.h:58
Event_ptr get_a_copy(bool learn=false) const
return a smart pointer to a deep copy of this instance
Definition: Root_event.h:123
void print_view_counts(std::ostream &os) const
print counts of various event "views"
Definition: Root_event.cpp:59
Data_type data_
Definition: Tree_event.h:182
boost::shared_ptr< S1_view > s1_view
Definition: Root_event.h:27
void print(std::ostream &os) const
print bare node information
Definition: Root_event.cpp:41
void print_with_links(std::ostream &os) const
print node in context
Definition: Root_event.cpp:47
boost::tuple< Word_type, Label_type, Label_type > Node_data
Definition: Tree_event.h:41
Definition: Root_event.h:24
boost::bimap< int, std::string > Map
Definition: Event_traits.h:34
void resample_table_assignments()
resample CRP table assignments for all component event views
Definition: Root_event.h:115
boost::shared_ptr< S2_view > s2_view
Definition: Root_event.h:28