mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
delete -adjacent-only. Rubbish
This commit is contained in:
parent
b68a906fdd
commit
cb2805151b
@ -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()
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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) ?
|
||||
|
@ -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; }
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user