diff options
author | Hieu Hoang <hieuhoang@Hieus-MacBook.local> | 2011-10-24 16:13:17 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@Hieus-MacBook.local> | 2011-10-24 16:13:17 +0400 |
commit | ae3ecbc1052dbe49e0b80887d63735b991829113 (patch) | |
tree | 4b6b22058a9f281a1cc5eba5ad224c9ac06f0d74 /moses | |
parent | 82e2e094ff344dd4b846ed382dda4d4d73379296 (diff) |
fix bug for tree-to-string. Didn't check source LHS
Diffstat (limited to 'moses')
-rw-r--r-- | moses/src/ChartRuleLookupManagerMemory.cpp | 5 | ||||
-rw-r--r-- | moses/src/PhraseDictionarySCFG.cpp | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/moses/src/ChartRuleLookupManagerMemory.cpp b/moses/src/ChartRuleLookupManagerMemory.cpp index 953f535a1..6b8fc25e5 100644 --- a/moses/src/ChartRuleLookupManagerMemory.cpp +++ b/moses/src/ChartRuleLookupManagerMemory.cpp @@ -77,11 +77,6 @@ void ChartRuleLookupManagerMemory::GetChartRuleCollection( // get list of all rules that apply to spans at same starting position DottedRuleColl &dottedRuleCol = *m_dottedRuleColls[range.GetStartPos()]; const DottedRuleList &expandableDottedRuleList = dottedRuleCol.GetExpandableDottedRuleList(); - - if (range.GetStartPos() == 2 && range.GetEndPos() == 3) - { - std::cerr << "hhh"; - } const ChartCellLabel &sourceWordLabel = GetCellCollection().Get(WordsRange(absEndPos, absEndPos)).GetSourceWordLabel(); diff --git a/moses/src/PhraseDictionarySCFG.cpp b/moses/src/PhraseDictionarySCFG.cpp index d376edb23..4b0f07dce 100644 --- a/moses/src/PhraseDictionarySCFG.cpp +++ b/moses/src/PhraseDictionarySCFG.cpp @@ -104,8 +104,8 @@ PhraseDictionaryNodeSCFG &PhraseDictionarySCFG::GetOrCreateNode(const Phrase &so } // finally, the source LHS - currNode = currNode->GetOrCreateChild(sourceLHS); - assert(currNode != NULL); + //currNode = currNode->GetOrCreateChild(sourceLHS); + //assert(currNode != NULL); return *currNode; } |