mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-25 04:43:03 +03:00
don't add label to m_targetLabelSet if no hypotheses. Assert error in parsing
This commit is contained in:
parent
2c14b506b4
commit
d7380d6d9e
@ -114,8 +114,11 @@ void ChartCell::SortHypotheses()
|
||||
MapType::iterator iter;
|
||||
for (iter = m_hypoColl.begin(); iter != m_hypoColl.end(); ++iter) {
|
||||
ChartHypothesisCollection &coll = iter->second;
|
||||
coll.SortHypotheses();
|
||||
m_targetLabelSet.AddConstituent(iter->first, &coll.GetSortedHypotheses());
|
||||
|
||||
if (coll.GetSize()) {
|
||||
coll.SortHypotheses();
|
||||
m_targetLabelSet.AddConstituent(iter->first, &coll.GetSortedHypotheses());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user