This commit is contained in:
RuiZhao 2015-12-24 13:48:21 -08:00 коммит произвёл Yongqiang Wang
Родитель ef84011f16
Коммит 1ad6c2d419
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -383,10 +383,10 @@ struct latticefunctionskernels
pathscore1 += getlogtransp(transP, -1, 1) + logLLs(senoneid1, ts);
}*/
pathscore2 = getlogtransp(transP, -1, 2) + logLLs(senoneid2, ts);
pathscore1 = getlogtransp(transP, -1, 1) + logLLs(senoneid1, ts);
pathscore2 += getlogtransp(transP, -1, 2) + logLLs(senoneid2, ts);
pathscore1 += getlogtransp(transP, -1, 1) + logLLs(senoneid1, ts);
state1stepm1to1 = ts;
pathscore0 = getlogtransp(transP, -1, 0) + logLLs(senoneid0, ts);
pathscore0 += getlogtransp(transP, -1, 0) + logLLs(senoneid0, ts);
}
@ -535,7 +535,7 @@ struct latticefunctionskernels
for (size_t t = alignindex; t < alignindex + numframes; t++) // set the final alignment
{
size_t senoneid;
if (state2step0to1 < te && t < state2step0to1)
if (state2step0to1 <alignindex - ts + te && t < state2step0to1)
senoneid = senoneid0;
else if(t < state2step1to2) // in state 1
senoneid = senoneid1;

Просмотреть файл

@ -438,7 +438,7 @@ template<typename FLOAT> static bool islogzero (FLOAT v) { return v < LOGZERO/2;
LogicError("invalid backpointer resulting in state index out of range");
int bp = (int) backpointers(j,t); // save the backpointer before overwriting it (gammas and backpointers are aliases of each other)
thisedgealignmentsj[t] = (unsigned short)hmm.getsenoneid(j - js);
//thisedgealignmentsj[t] = (unsigned short)hmm.getsenoneid(j - js);
if (!returnsenoneids) // return binary gammas (for MMI; this mode is compatible with softalignmode)
for (size_t i = js; i < je; i++)
loggammas(i,t) = ((int) i == j) ? 0.0f : LOGZERO;
@ -785,7 +785,7 @@ void lattice::forwardbackwardalign (parallelstate & parallelstate,
// - per-edge acoustic scores
const size_t silunitid = hset.gethmmid("sil"); // shall be the same as parallelstate.getsilunitid()
bool parallelsil = true;
bool cpuverification = true;
bool cpuverification = false;
#ifndef PARALLEL_SIL // we use a define to make this marked
parallelsil = false;