mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-16 23:10:31 +03:00
daily automatic beautifier
This commit is contained in:
parent
950c7de458
commit
fbd2f221ad
@ -21,11 +21,11 @@ PhraseDistanceFeature::PhraseDistanceFeature(const string &line)
|
||||
}
|
||||
|
||||
void PhraseDistanceFeature::EvaluateWithSourceContext(const InputType &input
|
||||
, const InputPath &inputPath
|
||||
, const TargetPhrase &targetPhrase
|
||||
, const StackVec *stackVec
|
||||
, ScoreComponentCollection &scoreBreakdown
|
||||
, ScoreComponentCollection *estimatedScores) const
|
||||
, const InputPath &inputPath
|
||||
, const TargetPhrase &targetPhrase
|
||||
, const StackVec *stackVec
|
||||
, ScoreComponentCollection &scoreBreakdown
|
||||
, ScoreComponentCollection *estimatedScores) const
|
||||
{
|
||||
vector<float> scores(m_numScoreComponents, 0);
|
||||
bool broken = false;
|
||||
|
@ -7,8 +7,7 @@ namespace Moses
|
||||
|
||||
class PhraseDistanceFeature : public StatelessFeatureFunction
|
||||
{
|
||||
enum Measure
|
||||
{
|
||||
enum Measure {
|
||||
EuclideanDistance,
|
||||
TotalVariationDistance,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user