arpa-file-parser-test.cc File Reference

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"
Include dependency graph for arpa-file-parser-test.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

int main (int argc, char *argv[])
 

Detailed Description

Unit tests for language model code.

Definition in file arpa-file-parser-test.cc.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 369 of file arpa-file-parser-test.cc.

369  {
370  kaldi::ReadIntegerLmLogconvExpectSuccess();
371  kaldi::ReadSymbolicLmNoOovTests();
372  kaldi::ReadSymbolicLmWithOovTests();
373 }

Variable Documentation

◆ array

const T* array

Definition at line 65 of file arpa-file-parser-test.cc.

◆ backoff

float backoff

◆ count

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().

◆ header_available_

bool header_available_
private

Definition at line 90 of file arpa-file-parser-test.cc.

◆ last_order_

int32 last_order_
private

Definition at line 92 of file arpa-file-parser-test.cc.

◆ line_number

int32 line_number

◆ logprob

◆ ngrams_

std::vector<NGramTestData> ngrams_
private

Definition at line 93 of file arpa-file-parser-test.cc.

◆ read_complete_

bool read_complete_
private

Definition at line 91 of file arpa-file-parser-test.cc.

◆ words