Unit tests for language model code. More...
#include <iomanip>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include "base/kaldi-common.h"
#include "fst/fstlib.h"
#include "lm/arpa-file-parser.h"
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 | |
int | main (int argc, char *argv[]) |
Unit tests for language model code.
Definition in file arpa-file-parser-test.cc.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 369 of file arpa-file-parser-test.cc.
const T* array |
Definition at line 65 of file arpa-file-parser-test.cc.
float backoff |
Definition at line 44 of file arpa-file-parser-test.cc.
Referenced by ArpaLmCompilerImpl< HistKey >::AddStateWithBackoff().
const size_t count |
Definition at line 66 of file arpa-file-parser-test.cc.
Referenced by MleAmSgmm2Accs::Accumulate(), FmllrRawAccs::AccumulateFromPosteriors(), AgglomerativeClusterer::AddClustersToSecondPass(), kaldi::ApplyCmvn(), kaldi::ApplyCmvnReverse(), ComputationGraphBuilder::Check(), kaldi::ClusterKMeansOnce(), DiscriminativeExampleSplitter::CollapseTransitionIds(), DiscriminativeSupervisionSplitter::CollapseTransitionIds(), kaldi::nnet3::ComputeCommandAttributes(), kaldi::cu::CpuBackpropLstmNonlinearity(), DiagGmm::DiagGmm(), LdaEstimate::Estimate(), FeatureTransformEstimate::Estimate(), FeatureTransformEstimateMulti::Estimate(), kaldi::FakeStatsForSomeDims(), kaldi::nnet2::FixNnet(), GaussClusterable::GaussClusterable(), kaldi::GenRandStats(), FasterDecoder::GetCutoff(), BiglmFasterDecoder::GetCutoff(), LatticeFasterDecoderTpl< fst::StdFst, decoder::BackpointerToken >::GetCutoff(), LatticeBiglmFasterDecoder::GetCutoff(), LatticeIncrementalDecoderTpl< FST, decoder::BackpointerToken >::GetCutoff(), kaldi::GetFeatureMeanAndVariance(), FmllrDiagGmmAccs::SingleFrameStats::Init(), ClipGradientComponent::Init(), kaldi::InitAmGmm(), kaldi::KMeansClusterPhones(), OnlineIvectorExtractorAdaptationState::LimitFrames(), LinearVtln::LinearVtln(), main(), DiagGmm::MergeKmeans(), kaldi::MleAmDiagGmmUpdate(), FmllrRawAccs::ModelDim(), ClipGradientComponent::OutputDim(), kaldi::nnet2::ProcessFile(), FmllrDiagGmmAccs::Read(), NormalizeComponent::Read(), KwsTermsAligner::RefExistsMaybe(), MleAmSgmm2Updater::RenormalizeV(), RectifiedLinearComponent::RepairGradients(), Semaphore::Semaphore(), UtteranceSplitter::SetOutputWeights(), kaldi::SplitDecisionTree(), kaldi::TestHashList(), kaldi::TestUniq(), kaldi::TrainOneIter(), kaldi::UnitTestDiagGmmGenerate(), UnitTestEstimateDiagGmm(), UnitTestEstimateFullGmm(), kaldi::UnitTestEstimateMmieDiagGmm(), kaldi::UnitTestFmllrDiagGmm(), kaldi::UnitTestFmllrDiagGmmDiagonal(), kaldi::UnitTestFmllrDiagGmmOffset(), kaldi::UnitTestFmllrRaw(), UnitTestFullGmmEst(), EbwAmSgmm2Updater::UpdatePhoneVectors(), MleAmSgmm2Updater::UpdatePhoneVectors(), IvectorExtractorStats::UpdateProjections(), and EbwAmSgmm2Updater::UpdateVars().
|
private |
Definition at line 90 of file arpa-file-parser-test.cc.
|
private |
Definition at line 92 of file arpa-file-parser-test.cc.
int32 line_number |
Definition at line 41 of file arpa-file-parser-test.cc.
Referenced by ParseOptions::ReadConfigFile(), kaldi::ReadRootsFile(), and kaldi::ReadScriptFile().
float logprob |
Definition at line 42 of file arpa-file-parser-test.cc.
Referenced by CRnnLM::computeConditionalLogprob(), RnnlmDeterministicFst::Final(), ConstArpaLmDeterministicFst::Final(), RnnlmDeterministicFst::GetArc(), ConstArpaLmDeterministicFst::GetArc(), and ConstArpaLm::NgramOrder().
|
private |
Definition at line 93 of file arpa-file-parser-test.cc.
|
private |
Definition at line 91 of file arpa-file-parser-test.cc.
int32 words[kMaxOrder] |
Definition at line 43 of file arpa-file-parser-test.cc.
Referenced by kaldi::AlignUtteranceWrapper(), kaldi::DecodeUtterance(), DecodeUtterance(), kaldi::DecodeUtteranceLatticeFaster(), kaldi::DecodeUtteranceLatticeIncremental(), kaldi::DecodeUtteranceLatticeSimple(), WordAlignLatticeLexiconInfo::FinalizeViabilityMap(), kaldi::GetDiagnosticsAndPrintOutput(), kaldi::LatticeToString(), main(), MinimumBayesRisk::MinimumBayesRisk(), NnetBatchDecoder::ProcessOutputUtterance(), kaldi::TestConvertPhnxToProns(), and DecodeUtteranceLatticeFasterClass::~DecodeUtteranceLatticeFasterClass().