mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-11-13 10:40:52 +03:00
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:
parent
ea04dc5209
commit
031617a8db
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user