event-map.cc File Reference
#include <set>
#include <string>
#include "tree/event-map.h"
Include dependency graph for event-map.cc:

Go to the source code of this file.

Namespaces

 kaldi
 This code computes Goodness of Pronunciation (GOP) and extracts phone-level pronunciation feature for mispronunciations detection tasks, the reference:
 

Functions

void WriteEventType (std::ostream &os, bool binary, const EventType &evec)
 
void ReadEventType (std::istream &is, bool binary, EventType *evec)
 
std::string EventTypeToString (const EventType &evec)
 
static bool IsLeafNode (const EventMap *e)
 
static bool GetTreeStructureInternal (const EventMap &map, std::vector< const EventMap *> *nonleaf_nodes, std::map< const EventMap *, const EventMap *> *nonleaf_parents, std::vector< const EventMap *> *leaf_parents)
 
bool GetTreeStructure (const EventMap &map, int32 *num_leaves, std::vector< int32 > *parents)
 This function gets the tree structure of the EventMap "map" in a convenient form. More...