mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +03:00
e8a7163f0d
Currently only used for forest input.
32 lines
568 B
C++
32 lines
568 B
C++
#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;
|
|
const TargetPhraseCollection *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
|