mosesdecoder/moses/Syntax/SVertexStack.h
Phil Williams d317fdc373 Store SHyperedge feature scores as deltas instead of totals
This mirrors the change made for the chart decoder in commit 465b4756...
2015-11-16 19:23:27 +00:00

27 lines
471 B
C++

#pragma once
#include <vector>
#include <boost/shared_ptr.hpp>
#include "SHyperedge.h"
#include "SVertex.h"
namespace Moses
{
namespace Syntax
{
typedef std::vector<boost::shared_ptr<SVertex> > SVertexStack;
struct SVertexStackContentOrderer {
public:
bool operator()(const boost::shared_ptr<SVertex> &x,
const boost::shared_ptr<SVertex> &y) {
return x->best->label.futureScore > y->best->label.futureScore;
}
};
} // Syntax
} // Moses