Skip to content

Commit

Permalink
Merge pull request microsoft#51 from yzhang87/master
Browse files Browse the repository at this point in the history
Fix the compile issue for Kaldi2Reader.
  • Loading branch information
dongyu888 committed Jan 29, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents d177346 + f1b1fd7 commit 6800069
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Source/Readers/Kaldi2Reader/HTKMLFReader.cpp
Original file line number Diff line number Diff line change
@@ -469,8 +469,12 @@ void HTKMLFReader<ElemType>::PrepareForTrainingOrTesting(const ConfigRecordType&
// construct all the parameters we don't need, but need to be passed to the constructor...
std::pair<std::vector<wstring>, std::vector<wstring>> latticetocs;
std::unordered_map<std::string, size_t> modelsymmap;
m_lattices = new msra::dbn::latticesource(latticetocs, modelsymmap);


// Note, we are actually not using <m_lattices>, the only reason we
// kept it was because it was required by
// <minibatchutterancesourcemulti>.
m_lattices = new msra::dbn::latticesource(latticetocs, modelsymmap, L"");

// now get the frame source. This has better randomization and doesn't create temp files
m_frameSource = new msra::dbn::minibatchutterancesourcemulti(
scriptpaths, infilesmulti, labelsmulti, m_featDims, m_labelDims,

0 comments on commit 6800069

Please sign in to comment.