mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2025-01-06 19:49:41 +03:00
26 lines
368 B
C++
26 lines
368 B
C++
#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
|