delete -adjacent-only. Rubbish

This commit is contained in:
Hieu Hoang 2014-01-27 12:25:02 +00:00
parent b68a906fdd
commit cb2805151b
5 changed files with 0 additions and 19 deletions

View File

@ -201,9 +201,6 @@ Parameter::Parameter()
AddParam("placeholder-factor", "Which source factor to use to store the original text for placeholders. The factor must not be used by a translation or gen model");
AddParam("no-cache", "Disable all phrase-table caching. Default = false (ie. enable caching)");
AddParam("adjacent-only", "Only allow hypotheses which are adjacent to current derivation. ITG without block moves");
}
Parameter::~Parameter()

View File

@ -250,11 +250,6 @@ bool SearchCubePruning::CheckDistortion(const WordsBitmap &hypoBitmap, const Wor
return true;
}
if (StaticData::Instance().AdjacentOnly() &&
!hypoBitmap.IsAdjacent(range.GetStartPos(), range.GetEndPos())) {
return false;
}
bool leftMostEdge = (hypoFirstGapPos == startPos);
// any length extension is okay if starting at left-most edge
if (leftMostEdge) {

View File

@ -253,11 +253,6 @@ void SearchNormal::ExpandAllHypotheses(const Hypothesis &hypothesis, size_t star
expectedScore += m_transOptColl.GetFutureScore().CalcFutureScore( hypothesis.GetWordsBitmap(), startPos, endPos );
}
if (StaticData::Instance().AdjacentOnly() &&
!hypothesis.GetWordsBitmap().IsAdjacent(startPos, endPos)) {
return;
}
// loop through all translation options
const TranslationOptionList &transOptList = m_transOptColl.GetTranslationOptionList(WordsRange(startPos, endPos));
TranslationOptionList::const_iterator iter;

View File

@ -385,8 +385,6 @@ bool StaticData::LoadData(Parameter *parameter)
SetBooleanParameter( &m_lmEnableOOVFeature, "lmodel-oov-feature", false);
SetBooleanParameter( &m_adjacentOnly, "adjacent-only", false);
// minimum Bayes risk decoding
SetBooleanParameter( &m_mbr, "minimum-bayes-risk", false );
m_mbrSize = (m_parameter->GetParam("mbr-size").size() > 0) ?

View File

@ -197,7 +197,6 @@ protected:
FactorType m_placeHolderFactor;
bool m_useLegacyPT;
bool m_adjacentOnly;
FeatureRegistry m_registry;
@ -753,9 +752,6 @@ public:
const std::map<Word, std::set<Word> >* Get_Soft_Matches_Reverse() const {
return &m_soft_matches_map_reverse;
}
bool AdjacentOnly() const
{ return m_adjacentOnly; }
};
}