mosesdecoder/moses/Syntax/PVertex.h

26 lines
368 B
C
Raw Normal View History

#pragma once
#include "moses/Word.h"
2015-10-25 16:37:59 +03:00
#include "moses/Range.h"
namespace Moses
{
namespace Syntax
{
2015-01-14 14:07:42 +03:00
struct PVertex {
public:
2015-10-25 16:37:59 +03:00
PVertex(const Range &wr, const Word &w) : span(wr), symbol(w) {}
2015-10-25 16:37:59 +03:00
Range span;
Word symbol;
};
inline bool operator==(const PVertex &v, const PVertex &w)
{
return v.span == w.span && v.symbol == w.symbol;
}
} // Syntax
} // Moses