delete unused function

git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@3563 1f5c12ca-751b-0410-a591-d2e778427230
This commit is contained in:
hieuhoang1972 2010-09-25 20:30:19 +00:00
parent ea04dc5209
commit 031617a8db

View File

@ -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