File size: 471 Bytes
158b61b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#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