From 031617a8db78c761e50625df0021eb6e2278edea Mon Sep 17 00:00:00 2001 From: hieuhoang1972 Date: Sat, 25 Sep 2010 20:30:19 +0000 Subject: [PATCH] delete unused function git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3563 1f5c12ca-751b-0410-a591-d2e778427230 --- moses/src/PhraseDictionarySCFGChart.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/moses/src/PhraseDictionarySCFGChart.cpp b/moses/src/PhraseDictionarySCFGChart.cpp index c7d068b86..1ad96e627 100644 --- a/moses/src/PhraseDictionarySCFGChart.cpp +++ b/moses/src/PhraseDictionarySCFGChart.cpp @@ -31,26 +31,6 @@ using namespace std; using namespace Moses; -Word PhraseDictionarySCFG::CreateCoveredWord(const Word &origSourceLabel, const InputType &src, const WordsRange &range) const -{ - string coveredWordsString = origSourceLabel.GetFactor(0)->GetString(); - - for (size_t pos = range.GetStartPos(); pos <= range.GetEndPos(); ++pos) - { - const Word &word = src.GetWord(pos); - coveredWordsString += "_" + word.GetFactor(0)->GetString(); - } - - FactorCollection &factorCollection = FactorCollection::Instance(); - - Word ret; - - const Factor *factor = factorCollection.AddFactor(Input, 0, coveredWordsString); - ret.SetFactor(0, factor); - - return ret; -} - void PhraseDictionarySCFG::GetChartRuleCollection(ChartTranslationOptionList &outColl ,InputType const& src ,WordsRange const& range