Commit fde02e21 by xiaotong

correct typos

parent 2432386c
...@@ -473,10 +473,10 @@ void T2TSearch::Collect(T2TStateBundle * beam) ...@@ -473,10 +473,10 @@ void T2TSearch::Collect(T2TStateBundle * beam)
/* check if this is the first end symbol. It is false /* check if this is the first end symbol. It is false
if there have been end symbols in previously generated words. */ if there have been end symbols in previously generated words. */
bool isComplted = state.isCompleted && (state.last == NULL || !state.last->isCompleted); bool isCompleted = state.isCompleted && (state.last == NULL || !state.last->isCompleted);
/* we push the hypothesis into the heap when it is completed */ /* we push the hypothesis into the heap when it is completed */
if(state.isEnd && isComplted) if(state.isEnd && isCompleted)
fullHypos[state.pid].Push(HeapNode<float>(&state, state.modelScore)); fullHypos[state.pid].Push(HeapNode<float>(&state, state.modelScore));
} }
} }
...@@ -501,10 +501,10 @@ void T2TSearch::FillHeap(T2TStateBundle * beam) ...@@ -501,10 +501,10 @@ void T2TSearch::FillHeap(T2TStateBundle * beam)
/* check if this is the first end symbol. It is false /* check if this is the first end symbol. It is false
if there have been end symbols in previously generated words. */ if there have been end symbols in previously generated words. */
bool isComplted = state.isCompleted && (state.last == NULL || !state.last->isCompleted); bool isCompleted = state.isCompleted && (state.last == NULL || !state.last->isCompleted);
/* we push the imcomplete hypothesis into the heap */ /* we push the imcomplete hypothesis into the heap */
if (emptyFlags[state.pid] && state.isEnd && isComplted) if (emptyFlags[state.pid] && state.isEnd && isCompleted)
fullHypos[state.pid].Push(HeapNode<float>(&state, state.modelScore)); fullHypos[state.pid].Push(HeapNode<float>(&state, state.modelScore));
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论