#include <kws-scoring.h>
Public Member Functions | |
TwvMetrics (const TwvMetricsOptions &opts) | |
~TwvMetrics () | |
void | AddAlignment (const KwsAlignment &ali) |
void | Reset () |
float | Atwv () |
float | Stwv () |
void | GetOracleMeasures (float *final_mtwv, float *final_mtwv_threshold, float *final_otwv) |
Private Member Functions | |
KALDI_DISALLOW_COPY_AND_ASSIGN (TwvMetrics) | |
void | AddEvent (const KwsTerm &ref, const KwsTerm &hyp, float ali_score) |
void | RefAndHypSeen (const std::string &kw_id, float score) |
void | OnlyRefSeen (const std::string &kw_id, float score) |
void | OnlyHypSeen (const std::string &kw_id, float score) |
Private Attributes | |
float | audio_duration_ |
float | atwv_decision_threshold_ |
float | beta_ |
TwvMetricsStats * | stats_ |
Definition at line 221 of file kws-scoring.h.
|
explicit |
Definition at line 321 of file kws-scoring.cc.
References rnnlm::i, TwvMetrics::stats_, TwvMetricsOptions::sweep_step, and TwvMetricsStats::sweep_threshold_values.
~TwvMetrics | ( | ) |
void AddAlignment | ( | const KwsAlignment & | ali | ) |
Definition at line 392 of file kws-scoring.cc.
References TwvMetrics::AddEvent(), KwsAlignment::begin(), KwsAlignment::end(), and KALDI_VLOG.
Referenced by main().
Definition at line 337 of file kws-scoring.cc.
References KALDI_ASSERT, KwsTerm::kw_id(), TwvMetrics::OnlyHypSeen(), TwvMetrics::OnlyRefSeen(), TwvMetrics::RefAndHypSeen(), KwsTerm::score(), and KwsTerm::valid().
Referenced by TwvMetrics::AddAlignment().
float Atwv | ( | ) |
Definition at line 408 of file kws-scoring.cc.
References TwvMetrics::audio_duration_, TwvMetrics::beta_, TwvMetricsStats::keyword_stats, and TwvMetrics::stats_.
Referenced by main().
Definition at line 448 of file kws-scoring.cc.
References TwvMetrics::audio_duration_, TwvMetrics::beta_, rnnlm::i, KALDI_ASSERT, TwvMetricsStats::keyword_stats, TwvMetricsStats::otwv_sweep_cache, TwvMetrics::stats_, and TwvMetricsStats::sweep_threshold_values.
Referenced by main().
|
private |
|
private |
Definition at line 369 of file kws-scoring.cc.
References TwvMetrics::atwv_decision_threshold_, TwvMetricsStats::global_keyword_stats, rnnlm::i, TwvMetricsStats::keyword_stats, KwScoreStats::nof_corr_ndet, KwScoreStats::nof_fa, TwvMetricsStats::otwv_sweep_cache, TwvMetrics::stats_, and TwvMetricsStats::sweep_threshold_values.
Referenced by TwvMetrics::AddEvent().
|
private |
Definition at line 385 of file kws-scoring.cc.
References TwvMetricsStats::global_keyword_stats, TwvMetricsStats::keyword_stats, KwScoreStats::nof_targets, KwScoreStats::nof_unseen, and TwvMetrics::stats_.
Referenced by TwvMetrics::AddEvent().
|
private |
Definition at line 351 of file kws-scoring.cc.
References TwvMetrics::atwv_decision_threshold_, TwvMetricsStats::global_keyword_stats, rnnlm::i, TwvMetricsStats::keyword_stats, KwScoreStats::nof_corr, KwScoreStats::nof_misses, KwScoreStats::nof_targets, TwvMetricsStats::otwv_sweep_cache, TwvMetrics::stats_, and TwvMetricsStats::sweep_threshold_values.
Referenced by TwvMetrics::AddEvent().
void Reset | ( | ) |
float Stwv | ( | ) |
Definition at line 429 of file kws-scoring.cc.
References TwvMetricsStats::keyword_stats, and TwvMetrics::stats_.
Referenced by main().
|
private |
Definition at line 250 of file kws-scoring.h.
Referenced by TwvMetrics::OnlyHypSeen(), and TwvMetrics::RefAndHypSeen().
|
private |
Definition at line 249 of file kws-scoring.h.
Referenced by TwvMetrics::Atwv(), and TwvMetrics::GetOracleMeasures().
|
private |
Definition at line 251 of file kws-scoring.h.
Referenced by TwvMetrics::Atwv(), and TwvMetrics::GetOracleMeasures().
|
private |
Definition at line 253 of file kws-scoring.h.
Referenced by TwvMetrics::Atwv(), TwvMetrics::GetOracleMeasures(), TwvMetrics::OnlyHypSeen(), TwvMetrics::OnlyRefSeen(), TwvMetrics::RefAndHypSeen(), TwvMetrics::Reset(), TwvMetrics::Stwv(), TwvMetrics::TwvMetrics(), and TwvMetrics::~TwvMetrics().