Edinburgh Speech Tools  2.1-release
EST_relation_compare.cc File Reference
#include <iostream>
#include <fstream>
#include <cmath>
#include "EST_types.h"
#include "EST_FMatrix.h"
#include "ling_class/EST_Relation.h"
#include "EST_Token.h"
#include "EST_string_aux.h"
#include "ling_class/EST_relation_aux.h"
#include "ling_class/EST_relation_compare.h"
#include "EST_io_aux.h"
Include dependency graph for EST_relation_compare.cc:

Go to the source code of this file.

Functions

int close_enough (EST_Item &a, EST_Item &b)
 
void monotonic_match (EST_II_KVL &a, EST_II_KVL &b)
 
void function_match (EST_II_KVL &u, EST_Relation &a, EST_Relation &b)
 
void relation_match (EST_Relation &a, EST_Relation &b)
 
void compare_labels (EST_Relation &reflab, EST_Relation &testlab)
 
EST_Itemnthpos (EST_Relation &a, int n)
 
float label_distance1 (EST_Item &ref, EST_Item &test)
 
float label_distance2 (EST_Item &ref, EST_Item &test)
 
ssize_t lowest_pos (const EST_FMatrix &m, ssize_t j)
 
void minimise_matrix_by_column (EST_FMatrix &m)
 
void minimise_matrix_by_row (EST_FMatrix &m)
 
void matrix_ceiling (EST_FMatrix &m, float max)
 
ssize_t matrix_insertions (EST_FMatrix &m)
 
ssize_t major_matrix_insertions (EST_FMatrix &m, EST_Relation &ref_lab)
 
ssize_t matrix_deletions (EST_FMatrix &m)
 
ssize_t major_matrix_deletions (EST_FMatrix &m, EST_Relation &ref_lab)
 
ssize_t lowest_pos (float const *const m, ssize_t n)
 
void threshold_labels (EST_Relation &reflab, float t)
 
void multiple_labels (EST_Relation &reflab)
 
EST_FMatrix matrix_compare (EST_Relation &reflab, EST_Relation &testlab, int method, float t, int v)
 
void multiple_matrix_compare (EST_RelationList &rlist, EST_RelationList &tlist, EST_FMatrix &m, EST_String rpos, EST_String tpos, int method, float t, int v)
 
void error_location (EST_Relation &e, EST_FMatrix &m, int ref)
 
int insdel (EST_II_KVL &a)
 
int compare_labels (EST_Utterance &ref, EST_Utterance &test, EST_String name, EST_II_KVL &uref, EST_II_KVL &utest)
 
void reassign_links (EST_Relation &a, EST_Relation &b, EST_II_KVL &ua, EST_II_KVL &ub)
 
void reassign_links (EST_Relation &a, EST_II_KVL &u, EST_String stream_type)
 
int commutate (EST_Item *a_ptr, EST_II_KVL &f1, EST_II_KVL &f2, EST_II_KVL &lref, EST_II_KVL &ltest)
 
void test_labels (EST_Utterance &ref, EST_Utterance &test, EST_Option &op)
 
void print_i_d_scores (EST_FMatrix &m)
 
void print_matrix_scores (EST_Relation &ref, EST_Relation &test, EST_FMatrix &a)
 
ssize_t row_hit (EST_FMatrix &m, ssize_t r)
 
ssize_t column_hit (EST_FMatrix &m, ssize_t c)
 
ssize_t num_b_insertions (EST_FMatrix &m, ssize_t last, ssize_t current)
 
int num_b_deletions (EST_FMatrix &m, int last, int current)
 
void print_s_trans (EST_Relation &a, int width)
 
void make_hit_and_miss (EST_Relation &a)
 
void pos_only (EST_Relation &lab)
 
void print_aligned_trans (EST_Relation &ref, EST_Relation &test, EST_FMatrix &m)
 
void print_results (EST_Relation &ref, EST_Relation &test, EST_FMatrix &m, int tot, int del, int ins, int v)
 

Function Documentation

int close_enough ( EST_Item a,
EST_Item b 
)

Definition at line 54 of file EST_relation_compare.cc.

void monotonic_match ( EST_II_KVL a,
EST_II_KVL b 
)

Definition at line 60 of file EST_relation_compare.cc.

void function_match ( EST_II_KVL u,
EST_Relation a,
EST_Relation b 
)

Definition at line 86 of file EST_relation_compare.cc.

void relation_match ( EST_Relation a,
EST_Relation b 
)

Definition at line 109 of file EST_relation_compare.cc.

void compare_labels ( EST_Relation reflab,
EST_Relation testlab 
)

Definition at line 132 of file EST_relation_compare.cc.

EST_Item* nthpos ( EST_Relation a,
int  n 
)

Definition at line 174 of file EST_relation_compare.cc.

float label_distance1 ( EST_Item ref,
EST_Item test 
)

Definition at line 189 of file EST_relation_compare.cc.

float label_distance2 ( EST_Item ref,
EST_Item test 
)

Definition at line 201 of file EST_relation_compare.cc.

ssize_t lowest_pos ( const EST_FMatrix m,
ssize_t  j 
)

Definition at line 212 of file EST_relation_compare.cc.

void minimise_matrix_by_column ( EST_FMatrix m)

Definition at line 227 of file EST_relation_compare.cc.

void minimise_matrix_by_row ( EST_FMatrix m)

Definition at line 243 of file EST_relation_compare.cc.

void matrix_ceiling ( EST_FMatrix m,
float  max 
)

Definition at line 260 of file EST_relation_compare.cc.

ssize_t matrix_insertions ( EST_FMatrix m)

Definition at line 271 of file EST_relation_compare.cc.

ssize_t major_matrix_insertions ( EST_FMatrix m,
EST_Relation ref_lab 
)

Definition at line 284 of file EST_relation_compare.cc.

ssize_t matrix_deletions ( EST_FMatrix m)

Definition at line 304 of file EST_relation_compare.cc.

ssize_t major_matrix_deletions ( EST_FMatrix m,
EST_Relation ref_lab 
)

Definition at line 317 of file EST_relation_compare.cc.

ssize_t lowest_pos ( float const *const  m,
ssize_t  n 
)

Definition at line 338 of file EST_relation_compare.cc.

void threshold_labels ( EST_Relation reflab,
float  t 
)

Definition at line 353 of file EST_relation_compare.cc.

void multiple_labels ( EST_Relation reflab)

Definition at line 386 of file EST_relation_compare.cc.

EST_FMatrix matrix_compare ( EST_Relation reflab,
EST_Relation testlab,
int  method,
float  t,
int  v 
)

Definition at line 448 of file EST_relation_compare.cc.

void multiple_matrix_compare ( EST_RelationList rlist,
EST_RelationList tlist,
EST_FMatrix m,
EST_String  rpos,
EST_String  tpos,
int  method,
float  t,
int  v 
)

Definition at line 513 of file EST_relation_compare.cc.

void error_location ( EST_Relation e,
EST_FMatrix m,
int  ref 
)

Definition at line 591 of file EST_relation_compare.cc.

int insdel ( EST_II_KVL a)

Definition at line 621 of file EST_relation_compare.cc.

int compare_labels ( EST_Utterance ref,
EST_Utterance test,
EST_String  name,
EST_II_KVL uref,
EST_II_KVL utest 
)

Definition at line 632 of file EST_relation_compare.cc.

void reassign_links ( EST_Relation a,
EST_Relation b,
EST_II_KVL ua,
EST_II_KVL ub 
)

Definition at line 660 of file EST_relation_compare.cc.

void reassign_links ( EST_Relation a,
EST_II_KVL u,
EST_String  stream_type 
)

Definition at line 685 of file EST_relation_compare.cc.

int commutate ( EST_Item a_ptr,
EST_II_KVL f1,
EST_II_KVL f2,
EST_II_KVL lref,
EST_II_KVL ltest 
)

Definition at line 703 of file EST_relation_compare.cc.

void test_labels ( EST_Utterance ref,
EST_Utterance test,
EST_Option op 
)

Definition at line 735 of file EST_relation_compare.cc.

void print_i_d_scores ( EST_FMatrix m)

Definition at line 829 of file EST_relation_compare.cc.

void print_matrix_scores ( EST_Relation ref,
EST_Relation test,
EST_FMatrix a 
)

Definition at line 846 of file EST_relation_compare.cc.

ssize_t row_hit ( EST_FMatrix m,
ssize_t  r 
)

Definition at line 885 of file EST_relation_compare.cc.

ssize_t column_hit ( EST_FMatrix m,
ssize_t  c 
)

Definition at line 896 of file EST_relation_compare.cc.

ssize_t num_b_insertions ( EST_FMatrix m,
ssize_t  last,
ssize_t  current 
)

Definition at line 906 of file EST_relation_compare.cc.

int num_b_deletions ( EST_FMatrix m,
int  last,
int  current 
)

Definition at line 915 of file EST_relation_compare.cc.

void print_s_trans ( EST_Relation a,
int  width 
)

Definition at line 924 of file EST_relation_compare.cc.

void make_hit_and_miss ( EST_Relation a)

Definition at line 942 of file EST_relation_compare.cc.

void pos_only ( EST_Relation lab)

Definition at line 958 of file EST_relation_compare.cc.

void print_aligned_trans ( EST_Relation ref,
EST_Relation test,
EST_FMatrix m 
)

Definition at line 971 of file EST_relation_compare.cc.

void print_results ( EST_Relation ref,
EST_Relation test,
EST_FMatrix m,
int  tot,
int  del,
int  ins,
int  v 
)

Definition at line 1061 of file EST_relation_compare.cc.