File size: 573 Bytes
fd49381
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
28
29
30
31
32
#pragma once

#include <vector>

#include "moses/ScoreComponentCollection.h"
#include "moses/TargetPhraseCollection.h"

#include "SVertexStack.h"

namespace Moses
{
namespace Syntax
{

struct PVertex;

struct SHyperedgeBundle {
  float inputWeight;
  std::vector<const SVertexStack*> stacks;
  TargetPhraseCollection::shared_ptr translations;

  friend void swap(SHyperedgeBundle &x, SHyperedgeBundle &y) {
    using std::swap;
    swap(x.inputWeight, y.inputWeight);
    swap(x.stacks, y.stacks);
    swap(x.translations, y.translations);
  }
};

}  // Syntax
}  // Moses