File size: 368 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 |
#pragma once
#include "moses/Word.h"
#include "moses/Range.h"
namespace Moses
{
namespace Syntax
{
struct PVertex {
public:
PVertex(const Range &wr, const Word &w) : span(wr), symbol(w) {}
Range span;
Word symbol;
};
inline bool operator==(const PVertex &v, const PVertex &w)
{
return v.span == w.span && v.symbol == w.symbol;
}
} // Syntax
} // Moses
|