mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-08 20:46:59 +03:00
d317fdc373
This mirrors the change made for the chart decoder in commit 465b4756...
27 lines
471 B
C++
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
|