event-map.h File Reference
#include <vector>
#include <map>
#include <algorithm>
#include "base/kaldi-common.h"
#include "util/stl-utils.h"
#include "util/const-integer-set.h"
Include dependency graph for event-map.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  EventMapVectorHash
struct  EventMapVectorEqual
class  EventMap
 A class that is capable of representing a generic mapping from EventType (which is a vector of (key, value) pairs) to EventAnswerType which is just an integer. More...
class  ConstantEventMap
class  TableEventMap
class  SplitEventMap


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


typedef int32 EventKeyType
 Things of type EventKeyType can take any value. More...
typedef int32 EventValueType
 Given current code, things of type EventValueType should generally be nonnegative and in a reasonably small range (e.g. More...
typedef int32 EventAnswerType
 As far as the event-map code itself is concerned, things of type EventAnswerType may take any value except kNoAnswer (== -1). More...
typedef std::vector< std::pair< EventKeyType, EventValueType > > EventType


std::pair< EventKeyType, EventValueType > MakeEventPair (EventKeyType k, EventValueType v)
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)
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...